Fix compiler warnings on Solaris

This commit is contained in:
Pieter Noordhuis
2010-12-23 11:25:56 +00:00
parent 89191613f1
commit 8ce39260a4
3 changed files with 8 additions and 4 deletions

View File

@ -1476,7 +1476,7 @@ void createPidFile(void) {
/* Try to write the pid file in a best-effort way. */
FILE *fp = fopen(server.pidfile,"w");
if (fp) {
fprintf(fp,"%d\n",getpid());
fprintf(fp,"%d\n",(int)getpid());
fclose(fp);
}
}