From 3195650180dfeb399ed9600f35108e21a2a1390d Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Oct 2015 17:37:06 +0100 Subject: [PATCH] Fix typo in error handling for sigwaitinfo() in charon-systemd and charon-tkm Fixes 858148092d1e ("Replace usages of sigwait(3) with sigwaitinfo(2)") --- src/charon-systemd/charon-systemd.c | 2 +- src/charon-tkm/src/charon-tkm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2