From 67709bafd55d000ed76be9a2ee5271eea5936a4a Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 21 Apr 2006 07:20:53 +0000 Subject: [PATCH] Fix for this: collectd.c: In function `pidfile_create': collectd.c:259: warning: int format, pid_t arg (arg 3) --- src/collectd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0