mirror of
https://github.com/fluencelabs/redis
synced 2025-06-14 09:41:21 +00:00
Fix compiler warnings on Solaris
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user