From 2370d4fa02da0284419cc081d7c0fde70626da50 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 26 Apr 2004 12:02:33 +0000
Subject: [PATCH] Curl_ip2addr() now takes an in_addr_t argument instead to
 prevent compiler warnings

---
 lib/hostip.h  | 2 +-
 lib/hostip4.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/hostip.h b/lib/hostip.h
index 19a62c666d..e0cc6beb4b 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -121,7 +121,7 @@ void Curl_addrinfo_callback(void *arg,
 
 /* This is a utility-function for ipv4-builds to create a hostent struct
    from a numerical-only IP address */
-Curl_addrinfo *Curl_ip2addr(unsigned long num, char *hostname);
+Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname);
 
 /* relocate a hostent struct */
 void Curl_hostent_relocate(struct hostent *h, long offset);
diff --git a/lib/hostip4.c b/lib/hostip4.c
index bd6e40e736..92a76baeec 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -129,7 +129,7 @@ bool Curl_ipvalid(struct SessionHandle *data)
  * The input parameters ARE NOT checked for validity but they are expected
  * to have been checked already when this is called.
  */
-Curl_addrinfo *Curl_ip2addr(unsigned long num, char *hostname)
+Curl_addrinfo *Curl_ip2addr(in_addr_t num, char *hostname)
 {
   struct hostent *h;
   struct in_addr *addrentry;
-- 
GitLab