Skip to content
Snippets Groups Projects
Commit 2370d4fa authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Curl_ip2addr() now takes an in_addr_t argument instead to prevent compiler

warnings
parent f128d904
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment