rem: if (write(fd, pw, bytecount) != bytecount) {
add: if (write(fd, pw, (size_t)bytecount) != bytecount) {
context: PdWriteFile(char *writeParams){    char  errbuf[512];    int   matchedArgs;    int   fd, offset, bytecount, hashcount = 0;    char *pw;    Ns_PdLog(Trace, "PdWriteFile:");    matchedArgs = sscanf(writeParams, "%d#%d#%d#",			 &fd, &offset, &bytecount);    if (matchedArgs != 3) {        sprintf(errbuf, "Error parsing write parameters: %s",		writeParams);        Ns_PdLog(Error, "nspd: failed writing file: '%s'", errbuf);        Ns_PdSendString(errbuf);    } else {        for (pw = writeParams; *pw;) {            if (*pw++ == '#') {                if (++hashcount == matchedArgs) {                    break;                }            }        }        lseek(fd, offset, SEEK_SET);        if (write(fd, pw, bytecount) != bytecount) {            sprintf(errbuf, "Write error to fd %d (%d bytes): %s",		    fd, bytecount, strerror(errno));            Ns_PdLog(Error, "nspd: failed writing file: '%s'", errbuf);            Ns_PdSendString(errbuf);        } else {            Ns_PdSendString(OK_STATUS);        }    }}