Skip to content

Commit

Permalink
* radsecproxy.c (createpidfile): Treat pid_t as long, avoiding compil…
Browse files Browse the repository at this point in the history
…er warnings on Solaris.
  • Loading branch information
Linus Nordberg committed May 28, 2010
1 parent 8439155 commit 2232f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2232f96

Please sign in to comment.