summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-08-17 21:08:09 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-08-17 21:08:09 +0000
commit4e35b4387cc38d4722285c3b5c0393c37622c815 (patch)
tree6b3e4b1ddb595e7db14868eadeb980c671db340a
parenta8f99e792408d0a7b6a9c478b38532b8c5fdc457 (diff)
downloadgnurl-4e35b4387cc38d4722285c3b5c0393c37622c815.tar.gz
gnurl-4e35b4387cc38d4722285c3b5c0393c37622c815.tar.bz2
gnurl-4e35b4387cc38d4722285c3b5c0393c37622c815.zip
Fred Noz fixed the gethostbyaddr_() call
-rw-r--r--lib/ftp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index c6584572f..eb277f5cd 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -777,13 +777,12 @@ CURLcode _ftp(struct connectdata *conn)
extern int gethostbyaddr_r(char *addr, size_t len, int type,
struct hostent *htent, struct hostent_data *ht_data); */
- /* Daniel: this implementation is really just guessing, please
- verify this before trusting this. I don't have access to any
- such system to try out! */
+ /* Fred Noz helped me try this out, now it at least compiles! */
+
if(gethostbyaddr_r((char *) &address,
sizeof(address), AF_INET,
(struct hostent *)hostent_buf,
- hostent_buf + sizeof(*answer))
+ hostent_buf + sizeof(*answer)))
answer=NULL;
# endif