Fix this (a pointer was compared with an integer):
[collectd.git] / src / collectd.c
index 1b44e15..b4ee504 100644 (file)
@@ -256,7 +256,7 @@ static int pidfile_create (const char *file)
                return (1);
        }
 
-       fprintf (fh, "%d\n", getpid());
+       fprintf (fh, "%i\n", (int) getpid ());
        fclose(fh);
 
        return (0);