From: Stephen D. <sd...@us...> - 2005-06-13 06:14:36
|
Update of /cvsroot/naviserver/naviserver/nscp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18750/nscp Modified Files: nscp.c Log Message: * include/ns.h: * nsd/adpparse.c: * nsd/compress.c: * nsd/listen.c: * nsd/sock.c: * nsd/tclimg.c: * nsd/tclmisc.c: * nsd/tclresp.c: * nsd/uuencode.c: * nscp/nscp.c: * tests/tclresp.test: Fix some issues with mixing signed/unsigned data that gcc4 was complaining about and a couple of instances of uninitialised variables. Index: nscp.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nscp/nscp.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** nscp.c 10 Jun 2005 17:58:37 -0000 1.4 --- nscp.c 13 Jun 2005 06:14:26 -0000 1.5 *************** *** 412,416 **** { unsigned char buf[2048]; ! int n; int result = 0; int retry = 0; --- 412,416 ---- { unsigned char buf[2048]; ! size_t n; int result = 0; int retry = 0; *************** *** 426,430 **** } n = strlen(prompt); ! if (send(sock, prompt, (unsigned int) n, 0) != n) { result = 0; goto bail; --- 426,430 ---- } n = strlen(prompt); ! if (send(sock, prompt, n, 0) != n) { result = 0; goto bail; *************** *** 478,482 **** } ! Tcl_DStringAppend(dsPtr, buf, n); result = 1; --- 478,482 ---- } ! Tcl_DStringAppend(dsPtr, (char *) buf, n); result = 1; |