From c78ecb0edaf2a94a004a9718c25eb7ce9ac0c142 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 27 Aug 2008 11:13:59 +0000 Subject: Stop using old-style function-definitions. --- cpukit/libnetworking/libc/getproto.c | 4 ++-- cpukit/libnetworking/libc/getprotoent.c | 8 ++++---- cpukit/libnetworking/libc/getprotoname.c | 4 ++-- cpukit/libnetworking/libc/getservbyname.c | 5 +++-- cpukit/libnetworking/libc/inet_makeaddr.c | 5 +++-- cpukit/libnetworking/libc/recv.c | 9 +++++---- cpukit/libnetworking/libc/send.c | 9 +++++---- 7 files changed, 24 insertions(+), 20 deletions(-) (limited to 'cpukit/libnetworking/libc') diff --git a/cpukit/libnetworking/libc/getproto.c b/cpukit/libnetworking/libc/getproto.c index b11b03debe..c394d31b76 100644 --- a/cpukit/libnetworking/libc/getproto.c +++ b/cpukit/libnetworking/libc/getproto.c @@ -44,8 +44,8 @@ extern int _proto_stayopen; extern struct protoent * getprotobynumber_static(int); struct protoent * -getprotobynumber(proto) - register int proto; +getprotobynumber( + int proto ) { register struct protoent *p; diff --git a/cpukit/libnetworking/libc/getprotoent.c b/cpukit/libnetworking/libc/getprotoent.c index 51a7d0de02..a100075ea9 100644 --- a/cpukit/libnetworking/libc/getprotoent.c +++ b/cpukit/libnetworking/libc/getprotoent.c @@ -53,8 +53,8 @@ static char *proto_aliases[MAXALIASES]; int _proto_stayopen; void -setprotoent(f) - int f; +setprotoent( + int f) { if (protof == NULL) protof = fopen(_PATH_PROTOCOLS, "r" ); @@ -64,7 +64,7 @@ setprotoent(f) } void -endprotoent() +endprotoent(void) { if (protof) { fclose(protof); @@ -74,7 +74,7 @@ endprotoent() } struct protoent * -getprotoent() +getprotoent(void) { char *p; register char *cp, **q; diff --git a/cpukit/libnetworking/libc/getprotoname.c b/cpukit/libnetworking/libc/getprotoname.c index 00d5e59faa..3f2278e542 100644 --- a/cpukit/libnetworking/libc/getprotoname.c +++ b/cpukit/libnetworking/libc/getprotoname.c @@ -45,8 +45,8 @@ extern int _proto_stayopen; extern struct protoent *getprotobyname_static(const char *); struct protoent * -getprotobyname(name) - register const char *name; +getprotobyname( + const char *name) { register struct protoent *p; register char **cp; diff --git a/cpukit/libnetworking/libc/getservbyname.c b/cpukit/libnetworking/libc/getservbyname.c index f77a56a203..37f80f8e15 100644 --- a/cpukit/libnetworking/libc/getservbyname.c +++ b/cpukit/libnetworking/libc/getservbyname.c @@ -62,8 +62,9 @@ int getservbyname_r( struct servent * -getservbyname(name, proto) - const char *name, *proto; +getservbyname( + const char *name, + const char *proto ) { register struct servent *p; register char **cp; diff --git a/cpukit/libnetworking/libc/inet_makeaddr.c b/cpukit/libnetworking/libc/inet_makeaddr.c index 46afa5afd2..183d20a3c0 100644 --- a/cpukit/libnetworking/libc/inet_makeaddr.c +++ b/cpukit/libnetworking/libc/inet_makeaddr.c @@ -46,8 +46,9 @@ * building addresses stored in the ifnet structure. */ struct in_addr -inet_makeaddr(net, host) - in_addr_t net, host; +inet_makeaddr( + in_addr_t net, + in_addr_t host ) { u_long addr; diff --git a/cpukit/libnetworking/libc/recv.c b/cpukit/libnetworking/libc/recv.c index e5dd2999ac..d36bfadcb4 100644 --- a/cpukit/libnetworking/libc/recv.c +++ b/cpukit/libnetworking/libc/recv.c @@ -43,10 +43,11 @@ #include ssize_t -recv(s, buf, len, flags) - int s, flags; - size_t len; - void *buf; +recv( + int s, + void *buf, + size_t len, + int flags ) { return (recvfrom(s, buf, len, flags, NULL, 0)); } diff --git a/cpukit/libnetworking/libc/send.c b/cpukit/libnetworking/libc/send.c index d1e3428752..cb112da515 100644 --- a/cpukit/libnetworking/libc/send.c +++ b/cpukit/libnetworking/libc/send.c @@ -43,10 +43,11 @@ #include ssize_t -send(s, msg, len, flags) - int s, flags; - size_t len; - const void *msg; +send( + int s, + const void *msg, + size_t len, + int flags ) { return (sendto(s, msg, len, flags, NULL, 0)); } -- cgit v1.2.3