procd: fix build error on new compilers

Signed-off-by: Petr Gotthard <petr.gotthard@advantech.cz>
This commit is contained in:
Petr Gotthard
2023-05-05 14:40:52 +02:00
committed by Khem Raj
parent 1982a5d662
commit 22fc60ef65
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/signal.c b/signal.c
index 9974153..d7cc8d2 100644
--- a/signal.c
+++ b/signal.c
@@ -33,7 +33,7 @@ static void do_reboot(void)
static void signal_shutdown(int signal, siginfo_t *siginfo, void *data)
{
int event = 0;
- char *msg = NULL;
+ char *msg = "none";
#ifndef DISABLE_INIT
switch(signal) {

View File

@@ -13,6 +13,7 @@ SECTION = "base"
DEPENDS = "libubox ubus json-c"
SRC_URI = "git://git.openwrt.org/project/procd.git;branch=master \
file://0200-fix-build.patch \
file://00_preinit.conf \
file://banner.failsafe \
file://10_sysinfo \