summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-07 17:51:56 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2001-03-07 17:51:56 +0000
commita15a0500ae23d86b0c9f7228585f9f2a4b773438 (patch)
treee8a9070bb6d7e4154651af3f8de2e180a5458b62 /network_io
parentd93ad75608998782a4c5c78b4dfe576c51e9e6be (diff)
downloadlibapr-a15a0500ae23d86b0c9f7228585f9f2a4b773438.tar.gz
Use a consistent style in declarations for inet_ntop4() and inet_ntop6().
Previously, we had modern prototypes followed by K&R-style definitions. This leads to warnings on some compilers (e.g., SGI). (this should have been committed with inet_pton() a few minutes ago) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61344 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/inet_ntop.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/network_io/unix/inet_ntop.c b/network_io/unix/inet_ntop.c
index 575bebe2a..b5d712767 100644
--- a/network_io/unix/inet_ntop.c
+++ b/network_io/unix/inet_ntop.c
@@ -97,10 +97,7 @@ apr_inet_ntop(int af, const void *src, char *dst, apr_size_t size)
* Paul Vixie, 1996.
*/
static const char *
-inet_ntop4(src, dst, size)
- const unsigned char *src;
- char *dst;
- apr_size_t size;
+inet_ntop4(const unsigned char *src, char *dst, apr_size_t size)
{
static const char fmt[] = "%u.%u.%u.%u";
char tmp[sizeof "255.255.255.255"];
@@ -121,10 +118,7 @@ inet_ntop4(src, dst, size)
* Paul Vixie, 1996.
*/
static const char *
-inet_ntop6(src, dst, size)
- const unsigned char *src;
- char *dst;
- apr_size_t size;
+inet_ntop6(const unsigned char *src, char *dst, apr_size_t size)
{
/*
* Note that int32_t and int16_t need only be "at least" large enough