forked from Imagelibrary/rtems
Add missing prototypes.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -64,7 +64,7 @@ rtems_rootfs_append_host_rec (unsigned long cip,
|
||||
*/
|
||||
|
||||
int
|
||||
rtems_create_root_fs ();
|
||||
rtems_create_root_fs ( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user