From cvs-return-3725-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Wed Jul 10 20:42:20 2002 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 33999 invoked by uid 500); 10 Jul 2002 20:42:19 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 33987 invoked from network); 10 Jul 2002 20:42:18 -0000 Date: 10 Jul 2002 20:42:18 -0000 Message-ID: <20020710204218.51679.qmail@icarus.apache.org> From: aaron@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/network_io/unix sa_common.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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) {