projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8439155
)
* radsecproxy.c (createpidfile): Treat pid_t as long, avoiding compiler warnings...
author
Linus Nordberg
<linus@nordberg.se>
Fri, 28 May 2010 14:08:12 +0000
(16:08 +0200)
committer
Linus Nordberg
<linus@nordberg.se>
Fri, 28 May 2010 14:08:12 +0000
(16:08 +0200)
radsecproxy.c
patch
|
blob
|
history
diff --git
a/radsecproxy.c
b/radsecproxy.c
index
44aa890
..
36ac6c4
100644
(file)
--- 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;
}