X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/1190c6cbf7f240691fee0d8fb21a7c19938116be..6eaad66373982aa9c1c0ff6b584c542670548d0e:/src/redis.c diff --git a/src/redis.c b/src/redis.c index c567710e..91371a00 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1441,7 +1441,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); } }