]> gitweb.fperrin.net Git - iftop.git/blobdiff - cfgfile.c
gitignore
[iftop.git] / cfgfile.c
index 6b4a06ebf47e14dc80e3018fdf5546840dbcb619..581909b1db875dc23c01c11a0c98a60e149971a9 100644 (file)
--- a/cfgfile.c
+++ b/cfgfile.c
@@ -8,6 +8,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
+#include <stdlib.h>
 
 #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);
 }