From 33285e1dd8f8dcb6f844e4d58b72eddc878931e9 Mon Sep 17 00:00:00 2001 From: Michael Santos Date: Mon, 3 Nov 2014 11:35:43 -0500 Subject: [PATCH] Fix initialization warnings on OpenBSD --- c_src/alcove_fork.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/c_src/alcove_fork.c b/c_src/alcove_fork.c index 92a5bc5..d313ab5 100644 --- a/c_src/alcove_fork.c +++ b/c_src/alcove_fork.c @@ -72,8 +72,8 @@ alcove_fork(alcove_state_t *ap, const char *arg, size_t len, alcove_arg_t child_arg = {0}; alcove_stdio_t fd = {{0}}; pid_t pid = 0; - sigset_t oldset = {{0}}; - sigset_t set = {{0}}; + sigset_t oldset; + sigset_t set; int errnum = 0; if (ap->depth >= ap->maxforkdepth) @@ -140,8 +140,8 @@ alcove_clone(alcove_state_t *ap, const char *arg, size_t len, int flags = 0; pid_t pid = 0; int errnum = 0; - sigset_t oldset = {{0}}; - sigset_t set = {{0}}; + sigset_t oldset; + sigset_t set; if (ap->depth >= ap->maxforkdepth) return alcove_mk_errno(reply, rlen, EAGAIN);