From: Baptiste Daroussin Date: Mon, 3 Jul 2023 12:22:05 +0000 (+0200) Subject: prototype: fix empty prototypes X-Git-Tag: RELEASE_1_4_0rc1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fc3f851b867f61adddddc75e61cef0d9767975b;p=thirdparty%2Fmlmmj.git prototype: fix empty prototypes --- diff --git a/src/log_error.c b/src/log_error.c index b8681baf..67594501 100644 --- a/src/log_error.c +++ b/src/log_error.c @@ -95,7 +95,7 @@ log_set_namef(const char *fmt, ...) _openlog(true); } -void log_free_name() +void log_free_name(void) { free(log_name); } diff --git a/src/mlmmj-maintd.c b/src/mlmmj-maintd.c index 620fa40c..30909304 100644 --- a/src/mlmmj-maintd.c +++ b/src/mlmmj-maintd.c @@ -72,7 +72,7 @@ static void print_help(const char *prg) exit(EXIT_SUCCESS); } -static int mydaemon() +static int mydaemon(void) { if (daemon(1, 0) != 0) { log_error(LOG_ARGS, "Unable to become a daemon"); diff --git a/src/random-int.c b/src/random-int.c index b58b972c..7de924ed 100644 --- a/src/random-int.c +++ b/src/random-int.c @@ -31,7 +31,7 @@ #include "wrappers.h" #include "config.h" -int random_int() +int random_int(void) { #ifndef HAVE_ARC4RANDOM_UNIFORM static int init = 0; diff --git a/src/strgen.c b/src/strgen.c index b205d148..e8bfada0 100644 --- a/src/strgen.c +++ b/src/strgen.c @@ -153,7 +153,7 @@ char *genmsgid(const char *fqdn) return (buf); } -char *gendatestr() +char *gendatestr(void) { time_t t; locale_t l = newlocale(LC_TIME_MASK, "C", NULL);