X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdaemon.c;h=a4d0fd407c1865bb5b9bd0fcdf0100fa1854d915;hp=e17994a216f1a7e58421c4797468cf4c86200511;hb=15e7414994200ceccc20195f084a574f9b30ad1f;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/src/daemon.c b/src/daemon.c index e17994a..a4d0fd4 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -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);