aboutsummaryrefslogtreecommitdiff
path: root/src/openrc
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-01-25 03:51:38 +0000
committerMike Frysinger <vapier@gentoo.org>2023-01-25 00:05:05 -0500
commit19f329d2f4ddc355ff699c856fec8081d7aac4a3 (patch)
treecc9f8aa18dada90089a1182f11cfe7ca6dd2ea9a /src/openrc
parent0b86c06c3c741f98b20a1f3a3c90ddd40a191526 (diff)
openrc, openrc-run: Fix -Wstrict-prototypes
These become fine with C23 because () starts to mean (void) then, but for previous language versions, it's deprecated, and it causes an annoying warning when building with Clang by default. Plus, GCC lacks specific flags to trigger what C23 *does* ban, so a lot of people are going around building with -Wstrict-prototypes, so let's just fix this to be consistent with the rest of the codebase anyway to fend off false positive reports.
Diffstat (limited to 'src/openrc')
-rw-r--r--src/openrc/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openrc/rc.c b/src/openrc/rc.c
index c853c829..3f023492 100644
--- a/src/openrc/rc.c
+++ b/src/openrc/rc.c
@@ -452,7 +452,7 @@ handle_signal(int sig)
}
static void
-do_sysinit()
+do_sysinit(void)
{
struct utsname uts;
const char *sys;