summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo1 <Chocobo1@users.noreply.github.com>2020-06-30 04:11:43 +0200
committerChocobo1 <Chocobo1@users.noreply.github.com>2020-06-30 04:30:25 +0200
commit6547da44f516e5b5aefb327054f084f38f975fce (patch)
tree502c447141a6cedca3953cae51af3ea67c12f756
parentAvoid using gnu printf specifier (diff)
downloadhaveged-6547da44f516e5b5aefb327054f084f38f975fce.tar.xz
haveged-6547da44f516e5b5aefb327054f084f38f975fce.zip
Use proper initializer
This was the compiler warning: "warning: ISO C forbids empty initializer braces"
-rw-r--r--src/havegecmd.c4
1 files 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;