tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgo...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_connect.c
Date Tue, 16 Mar 2004 08:59:05 GMT
hgomez      2004/03/16 00:59:05

  Modified:    jk/native/common jk_connect.c
  Log:
  Avoid problems with netware boxes
  
  Revision  Changes    Path
  1.19      +3 -3      jakarta-tomcat-connectors/jk/native/common/jk_connect.c
  
  Index: jk_connect.c
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_connect.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- jk_connect.c	1 Mar 2004 13:37:38 -0000	1.18
  +++ jk_connect.c	16 Mar 2004 08:59:05 -0000	1.19
  @@ -288,8 +288,8 @@
    */
   char * jk_dump_hinfo(struct sockaddr_in *saddr, char * buf)
   {
  -	in_addr_t laddr = htonl(saddr->sin_addr.s_addr);
  -	in_port_t lport = htons(saddr->sin_port);
  +	unsigned long laddr = htonl(saddr->sin_addr.s_addr);
  +	unsigned short lport = htons(saddr->sin_port);
   
   	sprintf(buf, "%d.%d.%d.%d:%d", 
   	        (int)(laddr >> 24), (int)((laddr >> 16) & 0xff), (int)((laddr
>> 8) & 0xff), (int)(laddr & 0xff), (int)lport);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message