Fix typo in error handling for sigwaitinfo() in charon-systemd and charon-tkm

Fixes 858148092d ("Replace usages of sigwait(3) with sigwaitinfo(2)")
This commit is contained in:
Tobias Brunner committed 2015-10-29 17:40:31 +01:00
1 parent 35dbf8af7a
commit 3195650180
2 files changed
+2 -2

No files matched your search

+1 -1
View 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)
+1 -1
View 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)