diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-22 09:15:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-04-22 09:25:11 +0200 |
commit | e800b0738b05e683ab64e509e4b48170c71dbd2b (patch) | |
tree | 214f638a5667c5762200ac775b4fb995e01855f9 /cpukit/libnetworking/rtems/rtems_glue.c | |
parent | network: Ensure matching syscall prototypes (diff) | |
download | rtems-e800b0738b05e683ab64e509e4b48170c71dbd2b.tar.bz2 |
network: Fix warnings
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_glue.c')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_glue.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index 38c7fd50e8..f079a67a3a 100644 --- a/cpukit/libnetworking/rtems/rtems_glue.c +++ b/cpukit/libnetworking/rtems/rtems_glue.c @@ -25,6 +25,7 @@ #include <sys/callout.h> #include <sys/proc.h> #include <sys/ioctl.h> +#include <sys/systm.h> #include <net/if.h> #include <net/route.h> #include <netinet/in.h> @@ -37,11 +38,6 @@ #include "loop.h" /* - * Sysctl init all. - */ -void sysctl_register_all(void *arg); - -/* * Memory allocation */ static uint32_t nmbuf = (64L * 1024L) / MSIZE; @@ -265,13 +261,6 @@ 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 @@ -843,8 +832,11 @@ rtems_bsdnet_log (int priority, const char *fmt, ...) /* * IP header checksum routine for processors which don't have an inline version */ + +u_int in_cksum_hdr(const struct ip *); + u_int -in_cksum_hdr (const void *ip) +in_cksum_hdr (const struct ip *ip) { uint32_t sum; const uint16_t *sp; |