Fix warnings about unsigned/signed and pointer comparisons.
This commit is contained in:
parent
f46e66165e
commit
8caa9a68bc
2 changed files with 5 additions and 5 deletions
2
secipd.c
2
secipd.c
|
@ -495,7 +495,7 @@ int main (int argc, char **argv) {
|
|||
if ((pid = fork())) {
|
||||
/* Write PID file */
|
||||
pidfile = fopen(conf->pid_file, "w");
|
||||
if (pidfile < 0)
|
||||
if (pidfile == NULL)
|
||||
return ST_LOG_ERR;
|
||||
|
||||
fprintf(pidfile, "%d\n", pid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue