You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by tr...@apache.org on 2001/03/07 18:41:41 UTC

cvs commit: apr/network_io/unix inet_pton.c

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";