X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7067b0aa2800bec29f14f8db8570c21eb1b6c224..9b49704959f4b7ecb482f3d1f87ba2735e1d7ed1:/lib/inet_pton.c diff --git a/lib/inet_pton.c b/lib/inet_pton.c index e8248687..4a0be885 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -27,10 +27,12 @@ */ static int inet_pton4(const char *src, unsigned char *dst); +#ifdef INET6 static int inet_pton6(const char *src, unsigned char *dst); +#endif /* int - * isc_net_pton(af, src, dst) + * inet_pton(af, src, dst) * convert from presentation format (which usually means ASCII printable) * to network format (which is usually some kind of binary format). * return: @@ -41,10 +43,9 @@ static int inet_pton6(const char *src, unsigned char *dst); * Paul Vixie, 1996. */ int -isc_net_pton(af, src, dst) - int af; - const char *src; - void *dst; +inet_pton(int af, + const char *src, + void *dst) { switch (af) { case AF_INET: