Add missing prototypes.

This commit is contained in:
Ralf Corsepius
2008-08-01 05:07:41 +00:00
parent 4ad63f50e2
commit e386ad7265
8 changed files with 25 additions and 23 deletions

View File

@@ -198,7 +198,7 @@ int rtems_ftp_mount_me(
* Initialize the FTP driver * Initialize the FTP driver
*/ */
int rtems_bsdnet_initialize_ftp_filesystem () int rtems_bsdnet_initialize_ftp_filesystem (void)
{ {
int status; int status;
rtems_filesystem_mount_table_entry_t *entry; rtems_filesystem_mount_table_entry_t *entry;

View File

@@ -66,7 +66,7 @@ extern int innetgr( const char *, const char *, const char *, const char * );
#define max(a, b) ((a > b) ? a : b) #define max(a, b) ((a > b) ? a : b)
#ifdef __rtems__ #ifdef __rtems__
int rresvport(); int rresvport(int *alport);
#define bzero(a,s) memset((a),0,(s)) #define bzero(a,s) memset((a),0,(s))
#define bcmp memcmp #define bcmp memcmp
#define bcopy(s,d,i) memcpy(d,s,i) #define bcopy(s,d,i) memcpy(d,s,i)
@@ -78,11 +78,13 @@ static int __icheckhost(const struct sockaddr *, socklen_t, const char *);
#endif #endif
int int
rcmd(ahost, rport, locuser, remuser, cmd, fd2p) rcmd(
char **ahost; char **ahost,
u_short rport; u_short rport,
const char *locuser, *remuser, *cmd; const char *locuser,
int *fd2p; const char *remuser,
const char *cmd,
int *fd2p )
{ {
struct hostent *hp; struct hostent *hp;
struct sockaddr_in sin, from; struct sockaddr_in sin, from;
@@ -256,8 +258,7 @@ bad:
} }
int int
rresvport(alport) rresvport(int *alport )
int *alport;
{ {
struct sockaddr_in sin; struct sockaddr_in sin;
int s; int s;

View File

@@ -52,9 +52,8 @@
* August, 1998 * August, 1998
*/ */
int int
in_cksum(m, len) in_cksum( struct mbuf *m,
struct mbuf *m; int len )
int len;
{ {
unsigned short *w; unsigned short *w;
unsigned long sum = 0; unsigned long sum = 0;

View File

@@ -264,10 +264,12 @@ cantsend:
/*ARGSUSED*/ /*ARGSUSED*/
int int
div_usrreq(so, req, m, nam, control) div_usrreq(
register struct socket *so; struct socket *so,
int req; int req,
struct mbuf *m, *nam, *control; struct mbuf *m,
struct mbuf *nam,
struct mbuf *control )
{ {
register int error = 0; register int error = 0;
register struct inpcb *inp = sotoinpcb(so); register struct inpcb *inp = sotoinpcb(so);

View File

@@ -30,10 +30,10 @@ extern "C" {
#include <rtems/libio.h> #include <rtems/libio.h>
/* create mount point and mount ftp file system */ /* 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. */ /* FTP File sysem operations table. */
extern rtems_filesystem_operations_table rtems_ftp_ops; extern rtems_filesystem_operations_table rtems_ftp_ops;
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -298,7 +298,7 @@ rtems_rootfs_append_host_rec (unsigned long cip,
*/ */
int int
rtems_create_root_fs () rtems_create_root_fs (void)
{ {
const char *lines[1]; const char *lines[1];
int i; int i;

View File

@@ -64,7 +64,7 @@ rtems_rootfs_append_host_rec (unsigned long cip,
*/ */
int int
rtems_create_root_fs (); rtems_create_root_fs ( void );
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@@ -88,9 +88,9 @@ copyAddress (void *to, void *from, int tolen)
* the printing completes! * the printing completes!
*/ */
static int static int
show_inet_route (rn, vw) show_inet_route (
struct radix_node *rn; struct radix_node *rn,
void *vw; void *vw )
{ {
struct rtentry *rt = (struct rtentry *)rn; struct rtentry *rt = (struct rtentry *)rn;
struct ifnet *ifp; struct ifnet *ifp;