diff -r 44d929ff268e -r b6fbe6821468 bmsd/lock.c --- a/bmsd/lock.c Fri May 07 13:20:53 2021 +0200 +++ b/bmsd/lock.c Fri May 07 13:29:07 2021 +0200 @@ -43,7 +43,7 @@ snprintf(tempfile, PATH_MAX, "%s/run/%s.tmp", Private_Path, name); snprintf(lockfile, PATH_MAX, "%s/run/%s.pid", Private_Path, name); - if (mkdirs(tempfile, 0755) == FALSE) { + if (mkdirs(tempfile, 0755) == false) { syslog(LOG_NOTICE, "Can't create path `%s': %s", tempfile, strerror(errno)); free(tempfile); free(lockfile); @@ -59,7 +59,7 @@ fprintf(fp, "%u\n", getpid()); fclose(fp); - while (TRUE) { + while (true) { if (link(tempfile, lockfile) == 0) { unlink(tempfile); free(tempfile);