trawick 01/03/07 09:52:00
Modified: network_io/unix inet_ntop.c
Log:
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)
Revision Changes Path
1.8 +2 -8 apr/network_io/unix/inet_ntop.c
Index: inet_ntop.c
===================================================================
RCS file: /home/cvs/apr/network_io/unix/inet_ntop.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- inet_ntop.c 2001/03/02 18:27:34 1.7
+++ inet_ntop.c 2001/03/07 17:51:56 1.8
@@ -97,10 +97,7 @@
* 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 @@
* 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