mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -04:00
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:
parent
35dbf8af7a
commit
3195650180
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user