[PATCH] sys/netinet/tcp_output.c compile fails on -CURRENT

From: Roop Nanuwa <roop_at_hqst.com>
Date: Wed, 11 Feb 2004 01:21:56 -0800
There were some changes made to sys/netinet/tcp_output.c
for revision 1.86. If you don't have TCP_SIGNATURE enabled
then the compile fails because there's a variable 'sigoff' that's
only used inside an #ifdef TCP_SIGNATURE block. If you don't
have it enabled then the compile fails because of the warning
that the variable sigoff is declared but never used. Patch
included to get around this.

(and as I finished typing this, the current tinderbox failure
messages are coming in :) )

--roop

--- sys/netinet/tcp_output.c.orig       Wed Feb 11 00:11:28 2004
+++ sys/netinet/tcp_output.c    Wed Feb 11 00:39:37 2004
_at__at_ -116,7 +116,9 _at__at_
        struct socket *so = tp->t_inpcb->inp_socket;
        long len, recwin, sendwin;
        int off, flags, error;
+#ifdef TCP_SIGNATURE
        int sigoff = 0;
+#endif
        struct mbuf *m;
        struct ip *ip = NULL;
        struct ipovly *ipov = NULL;
Received on Wed Feb 11 2004 - 00:21:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC