X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmain.c;h=344f6bd88af326437ac54cda453294293ff6f487;hb=24eae60940b662324e71fe350108de759dc2511a;hp=215049fedc08c1a16f4d81166389de9598d9d6ec;hpb=ab2572b38882968076651a36faa1a946e5b097a8;p=umurmur.git diff --git a/src/main.c b/src/main.c index 215049f..344f6bd 100644 --- a/src/main.c +++ b/src/main.c @@ -89,7 +89,7 @@ void lockfile(const char *pidfile) } snprintf(str,16,"%d\n", getpid()); - write(lfp, str, strlen(str)); /* record pid to lockfile */ + (void)write(lfp, str, strlen(str)); /* record pid to lockfile */ Log_info("PID-file: %s", pidfile); /* If uMurmur ever starts to fork()+exec(), we don't want it to @@ -195,11 +195,11 @@ void daemonize() close(i); /* close all descriptors */ i = open("/dev/null",O_RDWR); - dup(i); - dup(i); + (void)dup(i); + (void)dup(i); umask(027); /* set newly created file permissions */ - chdir("/"); + (void)chdir("/"); }