apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/network_io/unix inet_ntop.c
Date Wed, 06 Jun 2001 15:22:10 GMT
wrowe       01/06/06 08:22:09

  Modified:    network_io/unix inet_ntop.c
  Log:
    All printf's of the world return int - this warning has driven me crazy
    for months.  Sorry for the cast, but this one's quite harmless.
  
  Revision  Changes    Path
  1.10      +1 -1      apr/network_io/unix/inet_ntop.c
  
  Index: inet_ntop.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/inet_ntop.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- inet_ntop.c	2001/03/08 20:13:51	1.9
  +++ inet_ntop.c	2001/06/06 15:22:04	1.10
  @@ -102,7 +102,7 @@
   	static const char fmt[] = "%u.%u.%u.%u";
   	char tmp[sizeof "255.255.255.255"];
   
  -	if (apr_snprintf(tmp, sizeof tmp, fmt, src[0], src[1], src[2], src[3]) > size) {
  +	if (apr_snprintf(tmp, sizeof tmp, fmt, src[0], src[1], src[2], src[3]) > (int)size)
{
   		errno = ENOSPC;
   		return (NULL);
   	}
  
  
  

Mime
View raw message