X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdaemon.c;h=a4d0fd407c1865bb5b9bd0fcdf0100fa1854d915;hp=0311bc8a5fa6497d270f4f680e5976d7ab19253f;hb=e4c68bbbfdfbfb44c4dbb62c3f528106ab65ffcf;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/src/daemon.c b/src/daemon.c index 0311bc8..a4d0fd4 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -49,7 +49,7 @@ static void write_pidfile(int pid_fd) yaz_log(YLOG_FATAL|YLOG_ERRNO, "ftruncate"); exit(1); } - if (write(pid_fd, buf, strlen(buf)) != strlen(buf)) + if (write(pid_fd, buf, strlen(buf)) != (int) strlen(buf)) { yaz_log(YLOG_FATAL|YLOG_ERRNO, "write"); exit(1);