]> gitweb.fperrin.net Git - iftop.git/blobdiff - cfgfile.c
Import iftop-1.0pre4
[iftop.git] / cfgfile.c
index 6b4a06ebf47e14dc80e3018fdf5546840dbcb619..fa50c9e2d5b9759dfcf5f5ce60fac54fd93ca63c 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"
@@ -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);
 }