summaryrefslogtreecommitdiff
path: root/src/metaentry.c
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-01-23 15:00:05 +0100
committerPrzemyslaw Pawelczyk <przemoc@gmail.com>2018-01-23 15:00:05 +0100
commit5028a8e1b6f4d2848f93c36728b09b7a86304cca (patch)
treef05682e44a62f10577087d32c83e4802b1e6d2a1 /src/metaentry.c
parent82bb5be8b586e35db523b808913eea3d78331258 (diff)
Fix sparse warnings: non-ANSI function declaration.
Explicitly specify void when a function accepts no arguments.
Diffstat (limited to 'src/metaentry.c')
-rw-r--r--src/metaentry.c4
1 files changed, 2 insertions, 2 deletions
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));