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 ++-- src/utils.c | 4 ++-- 2 files changed, 4 insertions(+), 4 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)); diff --git a/src/utils.c b/src/utils.c index ae55e49..78f03d2 100644 --- a/src/utils.c +++ b/src/utils.c @@ -191,7 +191,7 @@ static struct group *gtable = NULL; /* Initial setup of the gid table */ static void -create_group_table() +create_group_table(void) { struct group *tmp; int count, index; @@ -249,7 +249,7 @@ static struct passwd *ptable = NULL; /* Initial setup of the passwd table */ static void -create_passwd_table() +create_passwd_table(void) { struct passwd *tmp; int count, index; -- cgit v1.2.1