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 bf1184e24..f74f3128f 100644 --- a/fake-getnameinfo.c +++ b/fake-getnameinfo.c | |||
@@ -46,8 +46,8 @@ int flags; | |||
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | else | 48 | else |
49 | if (hp = gethostbyaddr((char *)&sin->sin_addr, sizeof(struct in_addr), | 49 | if (NULL != (hp = gethostbyaddr((char *)&sin->sin_addr, |
50 | AF_INET)) | 50 | sizeof(struct in_addr), AF_INET))) |
51 | if (strlen(hp->h_name) > hostlen) | 51 | if (strlen(hp->h_name) > hostlen) |
52 | return EAI_MEMORY; | 52 | return EAI_MEMORY; |
53 | else { | 53 | else { |