From 6547da44f516e5b5aefb327054f084f38f975fce Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 30 Jun 2020 10:11:43 +0800 Subject: Use proper initializer This was the compiler warning: "warning: ISO C forbids empty initializer braces" --- src/havegecmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/havegecmd.c b/src/havegecmd.c index b691c29..5eb9146 100644 --- a/src/havegecmd.c +++ b/src/havegecmd.c @@ -191,7 +191,7 @@ int getcmd( /* RETURN: success or error */ const char* opt; } cmds[] = { { "root=", MAGIC_CHROOT, 1, NULL }, /* New root */ - {} + {0} }, *cmd = cmds; int ret = -1; @@ -227,7 +227,7 @@ int socket_handler( /* RETURN: closed file descriptor */ char *const argv[], /* IN: arguments for the haveged process */ struct pparams *params) /* IN: input params */ { - struct ucred cred = {}; + struct ucred cred = {0}; unsigned char magic[2], *ptr; char *enqry; char *optarg = NULL; -- cgit v1.2.3