summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 05:07:41 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2008-08-01 05:07:41 +0000
commite386ad7265df46df5536cc9033500394f717a720 (patch)
tree51041532039faa76c50d80e2513db8cc76220348
parent2008-08-01 Ralf Cors├ępius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e386ad7265df46df5536cc9033500394f717a720.tar.bz2
Add missing prototypes.
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c2
-rw-r--r--cpukit/libnetworking/libc/rcmd.c17
-rw-r--r--cpukit/libnetworking/netinet/in_cksum_m68k.h5
-rw-r--r--cpukit/libnetworking/netinet/ip_divert.c10
-rw-r--r--cpukit/libnetworking/rtems/ftpfs.h4
-rw-r--r--cpukit/libnetworking/rtems/mkrootfs.c2
-rw-r--r--cpukit/libnetworking/rtems/mkrootfs.h2
-rw-r--r--cpukit/libnetworking/rtems/rtems_showroute.c6
8 files changed, 25 insertions, 23 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c
index e536c21d69..0d2f742313 100644
--- a/cpukit/libnetworking/lib/ftpfs.c
+++ b/cpukit/libnetworking/lib/ftpfs.c
@@ -198,7 +198,7 @@ int rtems_ftp_mount_me(
* Initialize the FTP driver
*/
-int rtems_bsdnet_initialize_ftp_filesystem ()
+int rtems_bsdnet_initialize_ftp_filesystem (void)
{
int status;
rtems_filesystem_mount_table_entry_t *entry;
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index 6704864f16..e63ec76b6b 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -66,7 +66,7 @@ extern int innetgr( const char *, const char *, const char *, const char * );
#define max(a, b) ((a > b) ? a : b)
#ifdef __rtems__
-int rresvport();
+int rresvport(int *alport);
#define bzero(a,s) memset((a),0,(s))
#define bcmp memcmp
#define bcopy(s,d,i) memcpy(d,s,i)
@@ -78,11 +78,13 @@ static int __icheckhost(const struct sockaddr *, socklen_t, const char *);
#endif
int
-rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
- char **ahost;
- u_short rport;
- const char *locuser, *remuser, *cmd;
- int *fd2p;
+rcmd(
+ char **ahost,
+ u_short rport,
+ const char *locuser,
+ const char *remuser,
+ const char *cmd,
+ int *fd2p )
{
struct hostent *hp;
struct sockaddr_in sin, from;
@@ -256,8 +258,7 @@ bad:
}
int
-rresvport(alport)
- int *alport;
+rresvport(int *alport )
{
struct sockaddr_in sin;
int s;
diff --git a/cpukit/libnetworking/netinet/in_cksum_m68k.h b/cpukit/libnetworking/netinet/in_cksum_m68k.h
index e0a2215039..073504d4a8 100644
--- a/cpukit/libnetworking/netinet/in_cksum_m68k.h
+++ b/cpukit/libnetworking/netinet/in_cksum_m68k.h
@@ -52,9 +52,8 @@
* August, 1998
*/
int
-in_cksum(m, len)
- struct mbuf *m;
- int len;
+in_cksum( struct mbuf *m,
+ int len )
{
unsigned short *w;
unsigned long sum = 0;
diff --git a/cpukit/libnetworking/netinet/ip_divert.c b/cpukit/libnetworking/netinet/ip_divert.c
index e72c4d28ff..33c139164b 100644
--- a/cpukit/libnetworking/netinet/ip_divert.c
+++ b/cpukit/libnetworking/netinet/ip_divert.c
@@ -264,10 +264,12 @@ cantsend:
/*ARGSUSED*/
int
-div_usrreq(so, req, m, nam, control)
- register struct socket *so;
- int req;
- struct mbuf *m, *nam, *control;
+div_usrreq(
+ struct socket *so,
+ int req,
+ struct mbuf *m,
+ struct mbuf *nam,
+ struct mbuf *control )
{
register int error = 0;
register struct inpcb *inp = sotoinpcb(so);
diff --git a/cpukit/libnetworking/rtems/ftpfs.h b/cpukit/libnetworking/rtems/ftpfs.h
index c2ac0e839a..e0592394f7 100644
--- a/cpukit/libnetworking/rtems/ftpfs.h
+++ b/cpukit/libnetworking/rtems/ftpfs.h
@@ -30,10 +30,10 @@ extern "C" {
#include <rtems/libio.h>
/* create mount point and mount ftp file system */
- int rtems_bsdnet_initialize_ftp_filesystem () ;
+extern int rtems_bsdnet_initialize_ftp_filesystem (void);
/* FTP File sysem operations table. */
- extern rtems_filesystem_operations_table rtems_ftp_ops;
+extern rtems_filesystem_operations_table rtems_ftp_ops;
#ifdef __cplusplus
}
diff --git a/cpukit/libnetworking/rtems/mkrootfs.c b/cpukit/libnetworking/rtems/mkrootfs.c
index a65f249930..bd2296701e 100644
--- a/cpukit/libnetworking/rtems/mkrootfs.c
+++ b/cpukit/libnetworking/rtems/mkrootfs.c
@@ -298,7 +298,7 @@ rtems_rootfs_append_host_rec (unsigned long cip,
*/
int
-rtems_create_root_fs ()
+rtems_create_root_fs (void)
{
const char *lines[1];
int i;
diff --git a/cpukit/libnetworking/rtems/mkrootfs.h b/cpukit/libnetworking/rtems/mkrootfs.h
index ce07900f2c..661ddc6147 100644
--- a/cpukit/libnetworking/rtems/mkrootfs.h
+++ b/cpukit/libnetworking/rtems/mkrootfs.h
@@ -64,7 +64,7 @@ rtems_rootfs_append_host_rec (unsigned long cip,
*/
int
-rtems_create_root_fs ();
+rtems_create_root_fs ( void );
#ifdef __cplusplus
}
diff --git a/cpukit/libnetworking/rtems/rtems_showroute.c b/cpukit/libnetworking/rtems/rtems_showroute.c
index d6b0455ba3..a1eca66978 100644
--- a/cpukit/libnetworking/rtems/rtems_showroute.c
+++ b/cpukit/libnetworking/rtems/rtems_showroute.c
@@ -88,9 +88,9 @@ copyAddress (void *to, void *from, int tolen)
* the printing completes!
*/
static int
-show_inet_route (rn, vw)
- struct radix_node *rn;
- void *vw;
+show_inet_route (
+ struct radix_node *rn,
+ void *vw )
{
struct rtentry *rt = (struct rtentry *)rn;
struct ifnet *ifp;