]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
signal-util: fix incorrect argument of va_start 223/head
authorRonny Chevalier <chevalier.ronny@gmail.com>
Tue, 16 Jun 2015 09:38:06 +0000 (11:38 +0200)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Tue, 16 Jun 2015 09:41:59 +0000 (11:41 +0200)
The last argument of the function before the vargs is "old" not "how".

warning: second parameter of ‘va_start’ not last named argument

src/basic/signal-util.c

index d24730d4391ed82bdb1139f625445c73b8737443..90abe8af816d2df154d6ddbc123d0821475bbe87 100644 (file)
@@ -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);