From 98ddb53c821e1fa57f1cb2ac51241ee57830045e Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 8 Oct 1994 22:39:58 +0000 Subject: [PATCH] Cosmetics: silences gcc -Wall. --- sys/netinet/ip_icmp.c | 3 ++- sys/netinet/tcp_subr.c | 6 +++--- sys/netinet/tcp_timewait.c | 6 +++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index d26c6a119864..376c5cb4c61e 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_icmp.c,v 1.2 1994/08/02 07:48:32 davidg Exp $ + * $Id: ip_icmp.c,v 1.3 1994/10/02 17:48:38 phk Exp $ */ #include @@ -42,6 +42,7 @@ #include #include #include +#include #include #include diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 0e01df8328ad..10e83ab31d76 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_subr.c 8.1 (Berkeley) 6/10/93 - * $Id: tcp_subr.c,v 1.3 1994/08/02 07:49:08 davidg Exp $ + * $Id: tcp_subr.c,v 1.4 1994/10/02 17:48:44 phk Exp $ */ #include @@ -326,8 +326,8 @@ tcp_close(tp) * before we start updating, then update on both good * and bad news. */ - if ((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 && - ((i = tp->snd_ssthresh)) && rt->rt_rmx.rmx_ssthresh || + if (((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 && + ((i = tp->snd_ssthresh) != 0) && rt->rt_rmx.rmx_ssthresh) || i < (rt->rt_rmx.rmx_sendpipe / 2)) { /* * convert the limit from user data bytes to diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c index 0e01df8328ad..10e83ab31d76 100644 --- a/sys/netinet/tcp_timewait.c +++ b/sys/netinet/tcp_timewait.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_subr.c 8.1 (Berkeley) 6/10/93 - * $Id: tcp_subr.c,v 1.3 1994/08/02 07:49:08 davidg Exp $ + * $Id: tcp_subr.c,v 1.4 1994/10/02 17:48:44 phk Exp $ */ #include @@ -326,8 +326,8 @@ tcp_close(tp) * before we start updating, then update on both good * and bad news. */ - if ((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 && - ((i = tp->snd_ssthresh)) && rt->rt_rmx.rmx_ssthresh || + if (((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 && + ((i = tp->snd_ssthresh) != 0) && rt->rt_rmx.rmx_ssthresh) || i < (rt->rt_rmx.rmx_sendpipe / 2)) { /* * convert the limit from user data bytes to