summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_glue.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 21:42:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-18 21:42:41 +0000
commit02aaec7647607e96532b93083557412daca02285 (patch)
tree3c43da9ca1d68b69d0d5d596176d1314e8e895ac /cpukit/libnetworking/rtems/rtems_glue.c
parent2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-02aaec7647607e96532b93083557412daca02285.tar.bz2
2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* libnetworking/lib/ftpfs.c, libnetworking/libc/inet_ntoa.c, libnetworking/libc/rcmd.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_malloc_mbuf.c, libnetworking/rtems/rtems_showicmpstat.c, libnetworking/sys/malloc.h: Fix some warnings.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_glue.c')
-rw-r--r--cpukit/libnetworking/rtems/rtems_glue.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c
index 52db0e0f49..1508412940 100644
--- a/cpukit/libnetworking/rtems/rtems_glue.c
+++ b/cpukit/libnetworking/rtems/rtems_glue.c
@@ -138,6 +138,12 @@ rtems_bsdnet_free (void *addr, int type)
}
/*
+ * Externs for BSD data we have to access during initialization
+ */
+extern struct domain routedomain;
+extern struct domain inetdomain;
+
+/*
* Do the initializations required by the BSD code
*/
static int
@@ -192,8 +198,6 @@ bsd_init (void)
* Set up domains
*/
{
- extern struct domain routedomain;
- extern struct domain inetdomain;
routedomain.dom_next = domains;
domains = &routedomain;
@@ -215,15 +219,19 @@ bsd_init (void)
}
/*
+ * RTEMS Specific Helper Routines
+ */
+extern void rtems_set_udp_buffer_sizes( u_long, u_long );
+extern void rtems_set_tcp_buffer_sizes( u_long, u_long );
+extern void rtems_set_sb_efficiency( u_long );
+
+/*
* Initialize and start network operations
*/
static int
rtems_bsdnet_initialize (void)
{
rtems_status_code sc;
- extern void rtems_set_udp_buffer_sizes( u_long, u_long );
- extern void rtems_set_tcp_buffer_sizes( u_long, u_long );
- extern void rtems_set_sb_efficiency( u_long );
/*
* Set the priority of all network tasks