diff options
author | Ken Raeburn <raeburn@mit.edu> | 2002-04-26 01:27:26 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2002-04-26 01:27:26 +0000 |
commit | ae4409d05e45c407aa6a5483cab914a37c2ef8fb (patch) | |
tree | 16ae001382f0ed0b29fd5679d52233184db1df85 /src/include/fake-addrinfo.h | |
parent | a0449ce6ceaeac14fe31dff177dfce27320812f3 (diff) | |
download | krb5-ae4409d05e45c407aa6a5483cab914a37c2ef8fb.zip krb5-ae4409d05e45c407aa6a5483cab914a37c2ef8fb.tar.gz krb5-ae4409d05e45c407aa6a5483cab914a37c2ef8fb.tar.bz2 |
* fake-addrinfo.h (GET_HOST_BY_NAME, GET_HOST_BY_ADDR)
[GETHOSTBYNAME_R_RETURNS_INT]: Fix backwards test of return value.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14424 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/fake-addrinfo.h')
-rw-r--r-- | src/include/fake-addrinfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h index 64eb253..d555726 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 |