summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Chevalier <chevalier.ronny@gmail.com>2015-06-16 11:38:06 +0200
committerRonny Chevalier <chevalier.ronny@gmail.com>2015-06-16 11:41:59 +0200
commitc59d3e8d373fa15a29565e4995cfe5a6f38873ef (patch)
tree2a857a656f71fa3dfe07d900b7a6cb88825de4c3
parent4fba57963b8c83085c58d59c1bfc03633df22bae (diff)
signal-util: fix incorrect argument of va_start
The last argument of the function before the vargs is "old" not "how". warning: second parameter of ‘va_start’ not last named argument
-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);