summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2010-05-28 16:08:12 +0200
committerLinus Nordberg <linus@nordberg.se>2010-05-28 16:08:12 +0200
commit2232f96d22b5171c5f9569e2e0d3255e137d313b (patch)
tree0418dc20e883b604316730a6dc3f3873bf200330
parent8439155d06370a03d11fa4cd712f7ad17d9fc2aa (diff)
* radsecproxy.c (createpidfile): Treat pid_t as long, avoiding compiler warnings on Solaris.
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
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;
}