typecase getpid() to int to prevent compiler warning

This commit is contained in:
Daniel Stenberg 2003-03-16 10:46:52 +00:00
parent ad05d0a8d9
commit 9b43ade1c0
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ static int send_doc(int sock, int doc, int part_no)
/* we got a "friends?" question, reply back that we sure are */ /* we got a "friends?" question, reply back that we sure are */
logmsg("Identifying ourselves as friends"); logmsg("Identifying ourselves as friends");
sprintf(weare, "HTTP/1.1 200 OK\r\n\r\nWE ROOLZ: %d\r\n", sprintf(weare, "HTTP/1.1 200 OK\r\n\r\nWE ROOLZ: %d\r\n",
getpid()); (int)getpid());
buffer = weare; buffer = weare;
break; break;
case DOCNUMBER_INTERNAL: case DOCNUMBER_INTERNAL: