From d8808beee7854444f72010d74e5eb694b8e8f121 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 20 Jan 2008 10:07:00 +0100 Subject: [PATCH] Add prototype for loadfilters to myopt.h and make the argument void, not just the empty string --- lib/myopt.c | 2 +- lib/myopt.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/myopt.c b/lib/myopt.c index 322c2ef9..ac8cf27f 100644 --- a/lib/myopt.c +++ b/lib/myopt.c @@ -232,7 +232,7 @@ void loadfilter(char *fn) { } } -void loadfilters() { +void loadfilters(void) { struct dirent *dent; char *dirname = CONFIGDIR "/filters.d"; DIR *dir = opendir(dirname); diff --git a/lib/myopt.h b/lib/myopt.h index ffa27e3a..290ad602 100644 --- a/lib/myopt.h +++ b/lib/myopt.h @@ -40,6 +40,7 @@ void myfileopt(const char* fn, const struct cmdinfo* cmdinfos); void myopt(const char *const **argvp, const struct cmdinfo *cmdinfos); void loadcfgfile(const char *prog, const struct cmdinfo *cmdinfos); void loadfilter(char *fn); +void loadfilters(void); struct filterlist { int positive; -- 2.39.5