apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject cvs commit: apr/network_io/unix sa_common.c
Date Wed, 10 Jul 2002 20:42:18 GMT
aaron       2002/07/10 13:42:18

  Modified:    network_io/unix sa_common.c
  Log:
  Get rid of a couple of redundant zero assignments. We call memset()
  just a few lines above.
  
  Revision  Changes    Path
  1.56      +0 -2      apr/network_io/unix/sa_common.c
  
  Index: sa_common.c
  ===================================================================
  RCS file: /home/cvs/apr/network_io/unix/sa_common.c,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- sa_common.c	24 Apr 2002 20:13:52 -0000	1.55
  +++ sa_common.c	10 Jul 2002 20:42:18 -0000	1.56
  @@ -351,7 +351,6 @@
           int error;
   
           memset(&hints, 0, sizeof(hints));
  -        hints.ai_flags = 0; /* XXX: might need a way to turn on AI_CANONNAME */
   #if !APR_HAVE_IPV6
           /* we can't talk IPv6 so we might as well not search for IPv6
            * addresses
  @@ -362,7 +361,6 @@
   #endif
               hints.ai_family = family;
           hints.ai_socktype = SOCK_STREAM;
  -        hints.ai_protocol = 0;
           error = getaddrinfo(hostname, NULL, &hints, &ai_list);
           if (error) {
               if (error == EAI_SYSTEM) {
  
  
  

Mime
View raw message