diff options
author | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-23 15:00:05 +0100 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2018-01-23 15:00:05 +0100 |
commit | 5028a8e1b6f4d2848f93c36728b09b7a86304cca (patch) | |
tree | f05682e44a62f10577087d32c83e4802b1e6d2a1 /src | |
parent | 82bb5be8b586e35db523b808913eea3d78331258 (diff) |
Fix sparse warnings: non-ANSI function declaration.
Explicitly specify void when a function accepts no arguments.
Diffstat (limited to 'src')
-rw-r--r-- | src/metaentry.c | 4 | ||||
-rw-r--r-- | 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; |