From 2232f96d22b5171c5f9569e2e0d3255e137d313b Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 28 May 2010 16:08:12 +0200 Subject: * radsecproxy.c (createpidfile): Treat pid_t as long, avoiding compiler warnings on Solaris. --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radsecproxy.c b/radsecproxy.c index 44aa890..36ac6c4 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3164,7 +3164,7 @@ int createpidfile(const char *pidfile) { int r; FILE *f = fopen(pidfile, "w"); if (f) - r = fprintf(f, "%d\n", getpid()); + r = fprintf(f, "%ld\n", (long) getpid()); return f && !fclose(f) && r >= 0; } -- cgit v1.1