X-Git-Url: http://gitweb.fperrin.net/?p=iftop.git;a=blobdiff_plain;f=cfgfile.c;h=fa50c9e2d5b9759dfcf5f5ce60fac54fd93ca63c;hp=6b4a06ebf47e14dc80e3018fdf5546840dbcb619;hb=HEAD;hpb=cd1db5a0a5c698b647e554a003c7e48b5db695f5 diff --git a/cfgfile.c b/cfgfile.c index 6b4a06e..fa50c9e 100644 --- a/cfgfile.c +++ b/cfgfile.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "stringmap.h" #include "iftop.h" @@ -39,6 +40,9 @@ char * config_directives[] = { "net-filter6", "link-local", "port-display", + "timed-output", + "no-curses", + "num-lines", NULL }; @@ -166,7 +170,6 @@ int config_get_int(const char *directive, int *value) { * failure, or 0 if no value was found. */ int config_get_float(const char *directive, float *value) { stringmap S; - item *I; char *s, *t; if (!value) return -1; @@ -242,7 +245,5 @@ void config_set_string(const char *directive, const char* s) { } int read_config(char *file, int whinge_on_error) { - void* o; - return read_config_file(file, whinge_on_error); }