aboutsummaryrefslogtreecommitdiffstats
path: root/src/textfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textfile.c')
-rw-r--r--src/textfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textfile.c b/src/textfile.c
index a62cfe73..2429cc70 100644
--- a/src/textfile.c
+++ b/src/textfile.c
@@ -373,8 +373,7 @@ char *textfile_caseget(const char *pathname, const char *key)
return read_key(pathname, key, 1);
}
-int textfile_foreach(const char *pathname,
- void (*func)(char *key, char *value, void *data), void *data)
+int textfile_foreach(const char *pathname, textfile_cb func, void *data)
{
struct stat st;
char *map, *off, *end, *key, *value;