From: Tobias Brunner Date: Thu, 29 Oct 2015 16:37:06 +0000 (+0100) Subject: Fix typo in error handling for sigwaitinfo() in charon-systemd and charon-tkm X-Git-Tag: 5.3.4dr1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3195650180dfeb399ed9600f35108e21a2a1390d;p=thirdparty%2Fstrongswan.git Fix typo in error handling for sigwaitinfo() in charon-systemd and charon-tkm Fixes 858148092d1e ("Replace usages of sigwait(3) with sigwaitinfo(2)") --- diff --git a/src/charon-systemd/charon-systemd.c b/src/charon-systemd/charon-systemd.c index 5b43831a4c..f302d4527f 100644 --- a/src/charon-systemd/charon-systemd.c +++ b/src/charon-systemd/charon-systemd.c @@ -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) diff --git a/src/charon-tkm/src/charon-tkm.c b/src/charon-tkm/src/charon-tkm.c index 2b278d58e9..6c3a78bd8e 100644 --- a/src/charon-tkm/src/charon-tkm.c +++ b/src/charon-tkm/src/charon-tkm.c @@ -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)