From 5fc3f851b867f61adddddc75e61cef0d9767975b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 3 Jul 2023 14:22:05 +0200 Subject: [PATCH] prototype: fix empty prototypes --- src/log_error.c | 2 +- src/mlmmj-maintd.c | 2 +- src/random-int.c | 2 +- src/strgen.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.47.2