From ebcf841898f4b6d22de28bdd09d8cc7de800ec71 Mon Sep 17 00:00:00 2001 From: luigi Date: Sun, 23 Jun 2002 21:22:56 +0000 Subject: Move two global variables to automatic variables within the only function where they are used (they are used with TCPDEBUG only). --- sys/netinet/tcp_input.c | 5 +++-- sys/netinet/tcp_reass.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 25db5c1..d787daa 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -85,8 +85,6 @@ #ifdef TCPDEBUG #include -u_char tcp_saveipgen[40]; /* the size must be of max ip header, now IPv6 */ -struct tcphdr tcp_savetcp; #endif /* TCPDEBUG */ #ifdef IPSEC @@ -352,6 +350,9 @@ tcp_input(m, off0) int headlocked = 0; #ifdef TCPDEBUG + u_char tcp_saveipgen[40]; + /* the size of the above must be of max ip header, now IPv6 */ + struct tcphdr tcp_savetcp; short ostate = 0; #endif #ifdef INET6 diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 25db5c1..d787daa 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -85,8 +85,6 @@ #ifdef TCPDEBUG #include -u_char tcp_saveipgen[40]; /* the size must be of max ip header, now IPv6 */ -struct tcphdr tcp_savetcp; #endif /* TCPDEBUG */ #ifdef IPSEC @@ -352,6 +350,9 @@ tcp_input(m, off0) int headlocked = 0; #ifdef TCPDEBUG + u_char tcp_saveipgen[40]; + /* the size of the above must be of max ip header, now IPv6 */ + struct tcphdr tcp_savetcp; short ostate = 0; #endif #ifdef INET6 -- cgit v1.1