mirror of
https://github.com/curl/curl.git
synced 2026-08-03 07:20:28 +03:00
drop
This commit is contained in:
parent
2696110b08
commit
f3cbe33974
2 changed files with 4 additions and 8 deletions
|
|
@ -110,8 +110,7 @@ static int inet_pton4(const char *src, unsigned char *dst)
|
|||
* author:
|
||||
* Paul Vixie, 1996.
|
||||
*/
|
||||
static int inet_pton6(const char *src, unsigned char *dst,
|
||||
CURLcode *result)
|
||||
static int inet_pton6(const char *src, unsigned char *dst)
|
||||
{
|
||||
unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
|
||||
const char *curtok;
|
||||
|
|
@ -204,12 +203,10 @@ int curlx_inet_pton(int af, const char *src, void *dst)
|
|||
{
|
||||
switch(af) {
|
||||
case AF_INET:
|
||||
return inet_pton4(src, (unsigned char *)dst, result);
|
||||
return inet_pton4(src, (unsigned char *)dst);
|
||||
case AF_INET6:
|
||||
return inet_pton6(src, (unsigned char *)dst, result);
|
||||
return inet_pton6(src, (unsigned char *)dst);
|
||||
default:
|
||||
if(result)
|
||||
*result = CURLE_UNSUPPORTED_PROTOCOL;
|
||||
return -1;
|
||||
}
|
||||
/* NOTREACHED */
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
***************************************************************************/
|
||||
#include "curl_setup.h"
|
||||
|
||||
int curlx_inet_pton(int af, const char *src, void *dst,
|
||||
CURLcode *result);
|
||||
int curlx_inet_pton(int af, const char *src, void *dst);
|
||||
|
||||
#endif /* HEADER_CURL_INET_PTON_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue