Update copyright year.
[umurmur.git] / src / main.c
index 215049fedc08c1a16f4d81166389de9598d9d6ec..b92bc21e58fa2d97a15ce2195a87ad15894e6f6c 100644 (file)
@@ -1,5 +1,5 @@
-/* Copyright (C) 2009-2012, Martin Johansson <martin@fatbob.nu>
-   Copyright (C) 2005-2012, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-2013, Martin Johansson <martin@fatbob.nu>
+   Copyright (C) 2005-2013, Thorvald Natvig <thorvald@natvig.com>
 
    All rights reserved.
 
@@ -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("/");
                
 }