X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=cfgfile.c;h=581909b1db875dc23c01c11a0c98a60e149971a9;hb=refs%2Fheads%2Fpps-accounting;hp=6b4a06ebf47e14dc80e3018fdf5546840dbcb619;hpb=cd1db5a0a5c698b647e554a003c7e48b5db695f5;p=iftop.git diff --git a/cfgfile.c b/cfgfile.c index 6b4a06e..581909b 100644 --- a/cfgfile.c +++ b/cfgfile.c @@ -8,6 +8,7 @@ #include #include #include +#include #include "stringmap.h" #include "iftop.h" @@ -29,7 +30,8 @@ char * config_directives[] = { "promiscuous", "hide-source", "hide-destination", - "use-bytes", + "use-bytes", + "bandwidth-unit", "sort", "line-display", "show-totals", @@ -39,6 +41,9 @@ char * config_directives[] = { "net-filter6", "link-local", "port-display", + "timed-output", + "no-curses", + "num-lines", NULL }; @@ -166,7 +171,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 +246,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); }