summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-27 11:13:59 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-27 11:13:59 +0000
commitc78ecb0edaf2a94a004a9718c25eb7ce9ac0c142 (patch)
tree0ff1bfe50fad5b002289b80a50a47980ac076a51 /cpukit/libnetworking/libc
parentUse URLs for patches. (diff)
downloadrtems-c78ecb0edaf2a94a004a9718c25eb7ce9ac0c142.tar.bz2
Stop using old-style function-definitions.
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r--cpukit/libnetworking/libc/getproto.c4
-rw-r--r--cpukit/libnetworking/libc/getprotoent.c8
-rw-r--r--cpukit/libnetworking/libc/getprotoname.c4
-rw-r--r--cpukit/libnetworking/libc/getservbyname.c5
-rw-r--r--cpukit/libnetworking/libc/inet_makeaddr.c5
-rw-r--r--cpukit/libnetworking/libc/recv.c9
-rw-r--r--cpukit/libnetworking/libc/send.c9
7 files changed, 24 insertions, 20 deletions
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 <stddef.h>
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 <stddef.h>
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));
}