diff options
author | chris <> | 2004-03-19 10:08:47 +0000 |
---|---|---|
committer | chris <> | 2004-03-19 10:08:47 +0000 |
commit | bddf997a7a19e43c78a2ed336fc947fc1ccd38e8 (patch) | |
tree | 2a4e94a6449049ba0242dea270c2abb7d86a62ea | |
parent | 4327f0ef4d7235f75f36451f09d8ec9dda2e9826 (diff) | |
download | iftop-bddf997a7a19e43c78a2ed336fc947fc1ccd38e8.zip |
""
-rw-r--r-- | cfgfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -45,9 +45,9 @@ stringmap config; extern options_t options ; int is_cfgdirective_valid(const char *s) { - char* t; - for (t = config_directives[0]; t != NULL; ++t) - if (strcmp(s, t) == 0) return 1; + char **t; + for (t = config_directives; t != NULL; ++t) + if (strcmp(s, *t) == 0) return 1; return 0; } |