]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Fix typo in error handling for sigwaitinfo() in charon-systemd and charon-tkm
authorTobias Brunner <tobias@strongswan.org>
Thu, 29 Oct 2015 16:37:06 +0000 (17:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 29 Oct 2015 16:40:31 +0000 (17:40 +0100)
Fixes 858148092d1e ("Replace usages of sigwait(3) with sigwaitinfo(2)")

src/charon-systemd/charon-systemd.c
src/charon-tkm/src/charon-tkm.c

index 5b43831a4c485541defcfc11b1c5f879781ae26c..f302d4527f2eb07b60b4608b093ef46289aef332 100644 (file)
@@ -254,7 +254,7 @@ static int run()
                sig = sigwaitinfo(&set, NULL);
                if (sig == -1)
                {
-                       DBG1(DBG_DMN, "waiting for signal failed: %s", strerror(error));
+                       DBG1(DBG_DMN, "waiting for signal failed: %s", strerror(errno));
                        return SS_RC_INITIALIZATION_FAILED;
                }
                switch (sig)
index 2b278d58e99cfd97253e94de8b1983d427bb79c5..6c3a78bd8e54f7105fe2910a74e35b945aa56d90 100644 (file)
@@ -103,7 +103,7 @@ static void run()
                sig = sigwaitinfo(&set, NULL);
                if (sig == -1)
                {
-                       DBG1(DBG_DMN, "waiting for signal failed: %s", strerror(error));
+                       DBG1(DBG_DMN, "waiting for signal failed: %s", strerror(errno));
                        return;
                }
                switch (sig)