summaryrefslogtreecommitdiff
path: root/cfgfile.c
diff options
context:
space:
mode:
authorpdw <>2014-01-05 20:02:51 +0000
committerpdw <>2014-01-05 20:02:51 +0000
commit836733ba143c8dd4032934297460cccf46d3c018 (patch)
tree0cc3ff12a5abab6a62248ce6adcb1d5a365c6a5b /cfgfile.c
parenta7b8639fc91b95a36ccab85eac2c5e328695887f (diff)
downloadiftop-836733ba143c8dd4032934297460cccf46d3c018.zip
Fixes for a bunch of compiler warnings.
Diffstat (limited to 'cfgfile.c')
-rw-r--r--cfgfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cfgfile.c b/cfgfile.c
index ad1edc8..fa50c9e 100644
--- 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"
@@ -169,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;
@@ -245,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);
}