]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
prototype: fix empty prototypes
authorBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 3 Jul 2023 12:22:05 +0000 (14:22 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Mon, 3 Jul 2023 12:22:05 +0000 (14:22 +0200)
src/log_error.c
src/mlmmj-maintd.c
src/random-int.c
src/strgen.c

index b8681bafefbdbe717af33d2b3db34dad57e11e21..67594501f11b71626de9550ee94a0e6c975b728a 100644 (file)
@@ -95,7 +95,7 @@ log_set_namef(const char *fmt, ...)
        _openlog(true);
 }
 
-void log_free_name()
+void log_free_name(void)
 {
        free(log_name);
 }
index 620fa40c2b4506340d442da12f910f457f8c3220..3090930475274c41f97bd4c5c504f12f8eb684e8 100644 (file)
@@ -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");
index b58b972cf847e18bf0f5059881ecb83985160d2d..7de924ed0666f44ada6b6bd70a00c6508d6346b6 100644 (file)
@@ -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;
index b205d1482d1be808d718470d7a3d2bc59ee5df1b..e8bfada02ea26903209af721e86a4413285e59f1 100644 (file)
@@ -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);