aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-29 13:56:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-29 13:56:45 +0000
commit4d17d6876e4b2f08380812c4ec113073b0a14639 (patch)
tree7283f07518be4c7250d72ac89c38729563ffa642 /lib/inet_pton.c
parent0d6236f7e10468f75d09796ba9640c9054ab1f04 (diff)
Dan Fandrich's cleanup patch to make pedantic compiler options cause less
warnings. Minor edits by me.
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r--lib/inet_pton.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index 568f56506..1cd3f80f4 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -38,6 +38,8 @@
#include <string.h>
#include <errno.h>
+#include "inet_pton.h"
+
#define IN6ADDRSZ 16
#define INADDRSZ 4
#define INT16SZ 2
@@ -68,10 +70,7 @@ static int inet_pton6(const char *src, unsigned char *dst);
* Paul Vixie, 1996.
*/
int
-Curl_inet_pton(af, src, dst)
- int af;
- const char *src;
- void *dst;
+Curl_inet_pton(int af, const char *src, void *dst)
{
switch (af) {
case AF_INET:
@@ -101,9 +100,7 @@ Curl_inet_pton(af, src, dst)
* Paul Vixie, 1996.
*/
static int
-inet_pton4(src, dst)
- const char *src;
- unsigned char *dst;
+inet_pton4(const char *src, unsigned char *dst)
{
static const char digits[] = "0123456789";
int saw_digit, octets, ch;
@@ -156,9 +153,7 @@ inet_pton4(src, dst)
* Paul Vixie, 1996.
*/
static int
-inet_pton6(src, dst)
- const char *src;
- unsigned char *dst;
+inet_pton6(const char *src, unsigned char *dst)
{
static const char xdigits_l[] = "0123456789abcdef",
xdigits_u[] = "0123456789ABCDEF";