]> granicus.if.org Git - curl/commitdiff
use in_addr_t for inet_addr() return code. Now, now portable is this *REALLY*?
authorDaniel Stenberg <daniel@haxx.se>
Wed, 28 Nov 2001 12:16:52 +0000 (12:16 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 28 Nov 2001 12:16:52 +0000 (12:16 +0000)
We should add some configure tests for this!

lib/ftp.c

index a49ff0cbe6d03c7510ab697f0989edf22b5595f3..0d2ff744746004ff26f77d239f65aa95f41eddc7 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -815,7 +815,7 @@ ftp_pasv_verbose(struct connectdata *conn,
   char hostent_buf[8192];
 
 #if defined(HAVE_INET_ADDR)
-  unsigned long address;
+  in_addr_t address;
 # if defined(HAVE_GETHOSTBYADDR_R)
   int h_errnop;
 # endif