Fix warnings about unsigned/signed and pointer comparisons.

This commit is contained in:
Wilco Baan Hofman 2016-11-28 10:14:52 +01:00
parent f46e66165e
commit 8caa9a68bc
2 changed files with 5 additions and 5 deletions

View file

@ -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);