diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ChangeLog | 6 | ||||
-rw-r--r-- | src/include/fake-addrinfo.h | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 76dc404bde..1abad7c808 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +2002-04-25 Ken Raeburn <raeburn@mit.edu> + + * fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR) + [GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return + value. + 2002-04-24 Ken Raeburn <raeburn@mit.edu> * configure.in: If the return type for gethostbyname_r can't be diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index 64eb2536d3..d555726c82 100644 --- a/src/include/fake-addrinfo.h +++ b/src/include/fake-addrinfo.h @@ -120,8 +120,8 @@ (HP) = (gethostbyname_r((NAME), &my_h_ent, \ my_h_buf, sizeof (my_h_buf), &my_hp, \ &my_h_err) \ - ? &my_h_ent \ - : 0); \ + ? 0 \ + : &my_h_ent); \ (ERR) = my_h_err; \ } #define GET_HOST_BY_ADDR(ADDR, ADDRLEN, FAMILY, HP, ERR) \ @@ -132,8 +132,8 @@ (HP) = (gethostbyaddr_r((ADDR), (ADDRLEN), (FAMILY), &my_h_ent, \ my_h_buf, sizeof (my_h_buf), &my_hp, \ &my_h_err) \ - ? &my_h_ent \ - : 0); \ + ? 0 \ + : &my_h_ent); \ (ERR) = my_h_err; \ } #else |