summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2015-06-16 13:04:41 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2015-06-16 13:04:41 +0200
commitaab723074c368f65aaf2748d0c530ba9a1e6ad3e (patch)
tree06d55914ed2856902026980882fd661b8470adba
parent265d3f718bf50152d83e9f0d7cab3aa39c0ecae2 (diff)
parentc59d3e8d373fa15a29565e4995cfe5a6f38873ef (diff)
Merge pull request #223 from ronnychevalier/rc/warning_va_start
signal-util: fix incorrect argument of va_start
-rw-r--r--src/basic/signal-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/signal-util.c b/src/basic/signal-util.c
index d24730d439..90abe8af81 100644
--- a/src/basic/signal-util.c
+++ b/src/basic/signal-util.c
@@ -167,7 +167,7 @@ int sigprocmask_many(int how, sigset_t *old, ...) {
if (sigemptyset(&ss) < 0)
return -errno;
- va_start(ap, how);
+ va_start(ap, old);
r = sigset_add_many_ap(&ss, ap);
va_end(ap);