diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-08 17:48:56 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-08 17:48:56 +1000 |
commit | bc7c7cceea205733e3d0902bc751009b5836ff9c (patch) | |
tree | 879d315a66bc070c2410ee9da19b93780be517d1 /fake-getnameinfo.c | |
parent | 73a26627f255088b55172f7947c8c2419634059b (diff) |
- Avoid some compiler warnings in fake-get*.c
- Add IPTOS macros for systems which lack them
Diffstat (limited to 'fake-getnameinfo.c')
-rw-r--r-- | fake-getnameinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fake-getnameinfo.c b/fake-getnameinfo.c index bf1184e2..f74f3128 100644 --- a/fake-getnameinfo.c +++ b/fake-getnameinfo.c @@ -46,8 +46,8 @@ int flags; return 0; } else - if (hp = gethostbyaddr((char *)&sin->sin_addr, sizeof(struct in_addr), - AF_INET)) + if (NULL != (hp = gethostbyaddr((char *)&sin->sin_addr, + sizeof(struct in_addr), AF_INET))) if (strlen(hp->h_name) > hostlen) return EAI_MEMORY; else { |