From: <no...@so...> - 2008-11-10 17:04:04
|
Update of /cvsroot/ijbswa/current In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv473 Modified Files: jbsockets.c Log Message: Fix a gcc44 warning and remove a now-obsolete cast. Index: jbsockets.c =================================================================== RCS file: /cvsroot/ijbswa/current/jbsockets.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- jbsockets.c 4 Sep 2008 08:13:58 -0000 1.48 +++ jbsockets.c 10 Nov 2008 17:03:57 -0000 1.49 @@ -35,6 +35,9 @@ * * Revisions : * $Log$ + * Revision 1.49 2008/11/10 17:03:57 fabiankeil + * Fix a gcc44 warning and remove a now-obsolete cast. + * * Revision 1.48 2008/09/04 08:13:58 fabiankeil * Prepare for critical sections on Windows by adding a * layer of indirection before the pthread mutex functions. @@ -339,7 +342,7 @@ * * Parameters : * 1 : host = hostname to connect to - * 2 : portnum = port to connent on + * 2 : portnum = port to connent on (XXX: should be unsigned) * 3 : csp = Current client state (buffers, headers, etc...) * Not modified, only used for source IP and ACL. * @@ -351,7 +354,7 @@ { struct sockaddr_in inaddr; jb_socket fd; - int addr; + unsigned int addr; fd_set wfds; struct timeval tv[1]; #if !defined(_WIN32) && !defined(__BEOS__) && !defined(AMIGA) @@ -371,7 +374,7 @@ } #ifdef FEATURE_ACL - dst->addr = ntohl((unsigned long) addr); + dst->addr = ntohl(addr); dst->port = portnum; if (block_acl(dst, csp)) |