From 5028a8e1b6f4d2848f93c36728b09b7a86304cca Mon Sep 17 00:00:00 2001 From: Przemyslaw Pawelczyk Date: Tue, 23 Jan 2018 15:00:05 +0100 Subject: Fix sparse warnings: non-ANSI function declaration. Explicitly specify void when a function accepts no arguments. --- src/metaentry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/metaentry.c') diff --git a/src/metaentry.c b/src/metaentry.c index c33d7e2..55bd1ac 100644 --- a/src/metaentry.c +++ b/src/metaentry.c @@ -74,7 +74,7 @@ mentry_free(struct metaentry *m) /* Allocates an empty metahash table */ static struct metahash * -mhash_alloc() +mhash_alloc(void) { struct metahash *mhash; mhash = xmalloc(sizeof(struct metahash)); @@ -97,7 +97,7 @@ hash(const char *str) /* Allocates an empty metaentry */ static struct metaentry * -mentry_alloc() +mentry_alloc(void) { struct metaentry *mentry; mentry = xmalloc(sizeof(struct metaentry)); -- cgit v1.2.1