diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-03-07 17:41:37 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2001-03-07 17:41:37 +0000 |
commit | d93ad75608998782a4c5c78b4dfe576c51e9e6be (patch) | |
tree | 95e4bfd159408890bace5a4bdf316fe90e53190b /network_io | |
parent | 3b3dda92c7bdb0827ab149211110d07a03e2c750 (diff) | |
download | libapr-d93ad75608998782a4c5c78b4dfe576c51e9e6be.tar.gz |
Use a consistent style in declarations for inet_pton4() and inet_pton6().
Previously, we had modern prototypes followed by K&R-style definitions.
This leads to warnings on some compilers (e.g., SGI).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/unix/inet_pton.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/network_io/unix/inet_pton.c b/network_io/unix/inet_pton.c index 711384cb8..4a7613307 100644 --- a/network_io/unix/inet_pton.c +++ b/network_io/unix/inet_pton.c @@ -97,9 +97,7 @@ apr_inet_pton(int af, const char *src, void *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; @@ -152,9 +150,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"; |