You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/06/06 17:22:10 UTC

cvs commit: apr/network_io/unix inet_ntop.c

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);
   	}