diff options
author | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-10 20:42:18 +0000 |
---|---|---|
committer | aaron <aaron@13f79535-47bb-0310-9956-ffa450edef68> | 2002-07-10 20:42:18 +0000 |
commit | 01e9b9555eb1546c220379bb25046ce0fbaa20dd (patch) | |
tree | 6dc94ff4779b6367751eedc0e3a049d400826c52 /network_io | |
parent | 54358a8112c0ef49ff6e74d25b4f496e351b49d2 (diff) | |
download | libapr-01e9b9555eb1546c220379bb25046ce0fbaa20dd.tar.gz |
Get rid of a couple of redundant zero assignments. We call memset()
just a few lines above.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63599 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/unix/sa_common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/network_io/unix/sa_common.c b/network_io/unix/sa_common.c index fd3af244e..e199ee235 100644 --- a/network_io/unix/sa_common.c +++ b/network_io/unix/sa_common.c @@ -351,7 +351,6 @@ APR_DECLARE(apr_status_t) apr_sockaddr_info_get(apr_sockaddr_t **sa, 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 @@ APR_DECLARE(apr_status_t) apr_sockaddr_info_get(apr_sockaddr_t **sa, #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) { |