mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-03 20:29:28 -05:00
Cast to make warning disappear.
git-svn-id: file:///svn/unbound/trunk@157 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
06af702c20
commit
a3abab528b
1 changed files with 4 additions and 2 deletions
|
|
@ -151,8 +151,10 @@ checkoldpid(struct config_file* cfg)
|
|||
} else {
|
||||
/** see if it is still alive */
|
||||
if(kill(old, 0) == 0 || errno == EPERM)
|
||||
log_warn("unbound is already running as pid %u.", old);
|
||||
else log_warn("did not exit gracefully last time (%u)", old);
|
||||
log_warn("unbound is already running as pid %u.",
|
||||
(unsigned)old);
|
||||
else log_warn("did not exit gracefully last time (%u)",
|
||||
(unsigned)old);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue