diff options
author | Pavel Simerda <psimerda@redhat.com> | 2013-12-02 20:23:13 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-12-02 20:23:13 +0530 |
commit | 639a0ef8aba38b3ba1628d539fa95078132bca8a (patch) | |
tree | 569ddf9679126469829437f3f8c4051b5b5b9f62 /ChangeLog | |
parent | f524d6a8e41a6baae75bc3b400374fb3367c111a (diff) | |
download | glibc-639a0ef8aba38b3ba1628d539fa95078132bca8a.tar.gz glibc-639a0ef8aba38b3ba1628d539fa95078132bca8a.tar.xz glibc-639a0ef8aba38b3ba1628d539fa95078132bca8a.zip |
Remove redundant GAIH_OKIFUNSPEC and GAIH_EAI.
Only gaih_inet() and gaih_inet_serv() use a special bit flag denoted by the GAIH_OKIFUNSPEC macro. Only the return value of gaih_inet_serv() is actively checked for the bit flag which is redundant because it just copies the nonzero property of the value otherwise returned. The return value of gaih_inet() is only checked for being zero and then the bit flag is filtered out. As the bit flag is set only for otherwise nonzero return values, it doesn't affect the zero comparison. GAIH_EAI just an alias to ~GAIH_OKIFUNSPEC.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 1515942136..8e6b5274f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2013-12-02 Pavel Simerda <psimerda@redhat.com> + * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro. + (GAIH_EAI): Likewise. + (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC. + (gaih_inet): Likewise. + (getaddrinfo): Don't use GAIH_EAI. + * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro. (struct gaih): Remove definition. |