Skip to content

Commit bb34c5a

Browse files
kusmagitster
authored andcommitted
inet_ntop: fix a couple of old-style decls
Signed-off-by: Erik Faye-Lund <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent da523cc commit bb34c5a

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

compat/inet_ntop.c

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@
5050
* Paul Vixie, 1996.
5151
*/
5252
static const char *
53-
inet_ntop4(src, dst, size)
54-
const u_char *src;
55-
char *dst;
56-
size_t size;
53+
inet_ntop4(const u_char *src, char *dst, size_t size)
5754
{
5855
static const char fmt[] = "%u.%u.%u.%u";
5956
char tmp[sizeof "255.255.255.255"];
@@ -78,10 +75,7 @@ inet_ntop4(src, dst, size)
7875
* Paul Vixie, 1996.
7976
*/
8077
static const char *
81-
inet_ntop6(src, dst, size)
82-
const u_char *src;
83-
char *dst;
84-
size_t size;
78+
inet_ntop6(const u_char *src, char *dst, size_t size)
8579
{
8680
/*
8781
* Note that int32_t and int16_t need only be "at least" large enough
@@ -178,11 +172,7 @@ inet_ntop6(src, dst, size)
178172
* Paul Vixie, 1996.
179173
*/
180174
const char *
181-
inet_ntop(af, src, dst, size)
182-
int af;
183-
const void *src;
184-
char *dst;
185-
size_t size;
175+
inet_ntop(int af, const void *src, char *dst, size_t size)
186176
{
187177
switch (af) {
188178
case AF_INET:

0 commit comments

Comments
 (0)