apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/network_io/unix inet_pton.c
Date Wed, 07 Mar 2001 17:41:41 GMT
trawick     01/03/07 09:41:40

  Modified:    network_io/unix inet_pton.c
  Log:
  Use a consistent style in declarations for inet_pton4() and inet_pton6().
  Previously, we had modern prototypes followed by K&R-style definitions.
  This leads to warnings on some compilers (e.g., SGI).
  
  Revision  Changes    Path
  1.4       +2 -6      apr/network_io/unix/inet_pton.c
  
  Index: inet_pton.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/inet_pton.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- inet_pton.c	2001/02/25 20:39:35	1.3
  +++ inet_pton.c	2001/03/07 17:41:37	1.4
  @@ -97,9 +97,7 @@
    *	Paul Vixie, 1996.
    */
   static int
  -inet_pton4(src, dst)
  -	const char *src;
  -	unsigned char *dst;
  +inet_pton4(const char *src, unsigned char *dst)
   {
   	static const char digits[] = "0123456789";
   	int saw_digit, octets, ch;
  @@ -152,9 +150,7 @@
    *	Paul Vixie, 1996.
    */
   static int
  -inet_pton6(src, dst)
  -	const char *src;
  -	unsigned char *dst;
  +inet_pton6(const char *src, unsigned char *dst)
   {
   	static const char xdigits_l[] = "0123456789abcdef",
   			  xdigits_u[] = "0123456789ABCDEF";
  
  
  

Mime
View raw message