From 33679ec46e4e57d47be4580d4b699278733369d7 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 21 Aug 1998 13:04:55 +0000 Subject: All warnings removed. --- c/src/exec/libnetworking/libc/res_send.c | 2 +- c/src/exec/libnetworking/netinet/ip_input.c | 2 +- c/src/exec/libnetworking/netinet/ip_mroute.c | 4 ++-- c/src/exec/libnetworking/netinet/tcp_input.c | 2 +- c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h | 18 +++++++++++++++++- c/src/exec/libnetworking/rtems/rtems_glue.c | 1 + c/src/exec/libnetworking/rtems/rtems_showroute.c | 2 ++ 7 files changed, 25 insertions(+), 6 deletions(-) (limited to 'c/src/exec/libnetworking') diff --git a/c/src/exec/libnetworking/libc/res_send.c b/c/src/exec/libnetworking/libc/res_send.c index 8ab2d43804..08cb78490f 100644 --- a/c/src/exec/libnetworking/libc/res_send.c +++ b/c/src/exec/libnetworking/libc/res_send.c @@ -852,7 +852,7 @@ read_len: (stdout, ";; got answer:\n")); DprintQ((_res.options & RES_DEBUG) || (_res.pfcode & RES_PRF_REPLY), - (stdout, ""), + (stdout, "%s", ""), ans, (resplen>anssiz)?anssiz:resplen); /* * If using virtual circuits, we assume that the first server diff --git a/c/src/exec/libnetworking/netinet/ip_input.c b/c/src/exec/libnetworking/netinet/ip_input.c index 7dbed785ba..4cc141933f 100644 --- a/c/src/exec/libnetworking/netinet/ip_input.c +++ b/c/src/exec/libnetworking/netinet/ip_input.c @@ -120,7 +120,7 @@ struct ipstat ipstat; #define IPREASS_NHASH (1 << IPREASS_NHASH_LOG2) #define IPREASS_HMASK (IPREASS_NHASH - 1) #define IPREASS_HASH(x,y) \ - ((((x) & 0xF | ((((x) >> 8) & 0xF) << 4)) ^ (y)) & IPREASS_HMASK) + (((((x) & 0xF) | ((((x) >> 8) & 0xF) << 4)) ^ (y)) & IPREASS_HMASK) static struct ipq ipq[IPREASS_NHASH]; static int nipq = 0; /* total # of reass queues */ diff --git a/c/src/exec/libnetworking/netinet/ip_mroute.c b/c/src/exec/libnetworking/netinet/ip_mroute.c index 98f1e5d399..662d695dfe 100644 --- a/c/src/exec/libnetworking/netinet/ip_mroute.c +++ b/c/src/exec/libnetworking/netinet/ip_mroute.c @@ -69,8 +69,8 @@ extern int _mrt_ioctl __P((int req, caddr_t data, struct proc *p)); */ struct socket *ip_mrouter = NULL; -static u_int ip_mrtproto = 0; -static struct mrtstat mrtstat; +/* static u_int ip_mrtproto = 0; */ +/* static struct mrtstat mrtstat; */ u_int rsvpdebug = 0; int diff --git a/c/src/exec/libnetworking/netinet/tcp_input.c b/c/src/exec/libnetworking/netinet/tcp_input.c index 3ab1223d4e..bc55a79ae2 100644 --- a/c/src/exec/libnetworking/netinet/tcp_input.c +++ b/c/src/exec/libnetworking/netinet/tcp_input.c @@ -499,7 +499,7 @@ findpcb: * if the segment has a CC option equal to CCrecv */ ((tp->t_flags & (TF_REQ_CC|TF_RCVD_CC)) != (TF_REQ_CC|TF_RCVD_CC) || - (to.to_flag & TOF_CC) != 0 && to.to_cc == tp->cc_recv) && + ((to.to_flag & TOF_CC) != 0 && to.to_cc == tp->cc_recv)) && ti->ti_seq == tp->rcv_nxt && tiwin && tiwin == tp->snd_wnd && tp->snd_nxt == tp->snd_max) { diff --git a/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h b/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h index bd4f2e457e..646e0213f8 100644 --- a/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h @@ -1,6 +1,10 @@ /* * Declarations to fit FreeBSD to RTEMS. - * This include file should *never* be exposed to the application programmer. + * + ******************************************************************* + * WARNING * + * This file should *never* be included by any application program * + ******************************************************************* * * $Id$ */ @@ -155,4 +159,16 @@ extern int rtems_bsdnet_nameserver_count; */ #define SIO_RTEMS_SHOW_STATS _IO('i', 250) +/* + * Some extra prototypes + */ +int sethostname (char *name, int namelen); +void domaininit (void *); +void ifinit (void *); +void ipintr (void); +void arpintr (void); +void bootpc_init(void); +int socket (int, int, int); +int ioctl (int, unsigned long, ...); + #endif /* _RTEMS_BSDNET_INTERNAL_H_ */ diff --git a/c/src/exec/libnetworking/rtems/rtems_glue.c b/c/src/exec/libnetworking/rtems/rtems_glue.c index 773dd5c082..5b1f510589 100644 --- a/c/src/exec/libnetworking/rtems/rtems_glue.c +++ b/c/src/exec/libnetworking/rtems/rtems_glue.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/c/src/exec/libnetworking/rtems/rtems_showroute.c b/c/src/exec/libnetworking/rtems/rtems_showroute.c index 1dc5b9bfad..8beffca220 100644 --- a/c/src/exec/libnetworking/rtems/rtems_showroute.c +++ b/c/src/exec/libnetworking/rtems/rtems_showroute.c @@ -2,6 +2,8 @@ * $Id$ */ +#include + #include #include #include -- cgit v1.2.3