ntoa() and inet_ntoa_r() no longer used

This commit is contained in:
Yang Tse
2008-09-24 12:22:16 +00:00
parent 95df5d042c
commit 4e909ee8b1
31 changed files with 11 additions and 226 deletions

View File

@@ -340,37 +340,6 @@ Curl_getaddrinfo_a(const char * nodename, const char * servname,
}
int
Curl_inet_ntoa_r_a(struct in_addr internet_address,
char * output_buffer, int output_buffer_length)
{
int rc;
int i;
char * cp;
if (!output_buffer || output_buffer_length < 16)
return inet_ntoa_r(internet_address, output_buffer, output_buffer_length);
if (!(cp = malloc(output_buffer_length + 1)))
return -1;
rc = inet_ntoa_r(internet_address, cp, output_buffer_length);
if (rc) {
free(cp);
return rc;
}
cp[output_buffer_length - 1] = '\0';
i = strlen(cp);
QadrtConvertE2A(output_buffer, cp, i, i);
output_buffer[i] = '\0';
free(cp);
return rc;
}
#ifdef USE_QSOSSL
/* ASCII wrappers for the SSL procedures. */