File iftop-implicit-pointer-decl.patch of Package iftop

--- cfgfile.h.orig
+++ cfgfile.h
@@ -13,14 +13,14 @@ typedef struct {
     int value;
 } config_enumeration_type;
 
-int read_config();
+int read_config(char *file, int whinge_on_error);
 
 char *config_get_string(const char *directive);
 int config_get_bool(const char *directive);
 int config_get_int(const char *directive, int *value);
 int config_get_float(const char *directive, float *value);
 int config_init();
-
-
+void config_set_string(const char *directive, const char* s);
+int config_get_enum(const char *directive, config_enumeration_type *enumeration, int *value);
 
 #endif /* __CFGFILE_H_ */
--- iftop.c.orig
+++ iftop.c
@@ -3,6 +3,8 @@
  *
  */
 
+#define NCURSES_NOMACROS 1
+#define NCURSES_OPAQUE 1
 #include "integers.h"
 
 #include <stdio.h>
@@ -62,6 +64,8 @@ struct in6_addr if_ip6_addr;
 
 extern options_t options;
 
+extern int get_addrs_ioctl(char *interface, char if_hw_addr[], struct in_addr *if_ip_addr, struct in6_addr *if_ip6_addr);
+
 hash_type* history;
 history_type history_totals;
 time_t last_timestamp;
--- cfgfile.c.orig
+++ cfgfile.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
+#include <stdlib.h>
 
 #include "stringmap.h"
 #include "iftop.h"
--- options.h.orig
+++ options.h
@@ -93,5 +93,6 @@ typedef struct {
 
 void options_set_defaults();
 void options_read(int argc, char **argv);
-
+void options_read_args(int argc, char **argv);
+void options_make(void);
 #endif /* __OPTIONS_H_ */
--- configure.in.orig
+++ configure.in
@@ -34,7 +34,9 @@ AM_INIT_AUTOMAKE(iftop, "1.0pre2")
 AC_DEFINE_UNQUOTED(IFTOP_VERSION, "$VERSION", [The iftop version number])
 
 dnl Make sure we have a C compiler....
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
 AC_HEADER_STDC
 
 dnl
--- Makefile.am.orig
+++ Makefile.am
@@ -10,6 +10,7 @@
 # $Id: Makefile.am,v 1.11 2010/11/27 17:19:25 pdw Exp $
 #
 
+AM_CPPFLAGS = -include $(top_builddir)/config.h
 sbin_PROGRAMS = iftop 
 #iftop-dump
 
--- edline.c.orig
+++ edline.c
@@ -6,6 +6,9 @@
 
 static const char rcsid[] = "$Id: edline.c,v 1.2 2002/11/04 12:27:35 chris Exp $";
 
+#define NCURSES_NOMACROS 1
+#define NCURSES_OPAQUE 1
+
 #include <ctype.h>
 #include <curses.h>
 #include <string.h>
--- ui.c.orig
+++ ui.c
@@ -3,6 +3,9 @@
  *
  */
 
+#define NCURSES_NOMACROS 1
+#define NCURSES_OPAQUE 1
+
 #include <sys/types.h>
 
 #include <ctype.h>
openSUSE Build Service is sponsored by