From: octo Date: Fri, 21 Apr 2006 07:20:53 +0000 (+0000) Subject: Fix for this: X-Git-Tag: svn-trunk~61 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=67709bafd55d000ed76be9a2ee5271eea5936a4a;p=collectd.git Fix for this: collectd.c: In function `pidfile_create': collectd.c:259: warning: int format, pid_t arg (arg 3) --- diff --git a/src/collectd.c b/src/collectd.c index 1b44e153..b4ee5046 100644 --- a/src/collectd.c +++ b/src/collectd.c @@ -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);