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

Fixes 858148092d1e ("Replace usages of sigwait(3) with sigwaitinfo(2)")
This commit is contained in:
Tobias Brunner 2015-10-29 17:37:06 +01:00
parent 35dbf8af7a
commit 3195650180
2 changed files with 2 additions and 2 deletions

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)

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)