diff options
author | luigi <luigi@FreeBSD.org> | 2002-06-23 21:22:56 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-06-23 21:22:56 +0000 |
commit | ebcf841898f4b6d22de28bdd09d8cc7de800ec71 (patch) | |
tree | 008a5e17b8d0dcfcbe7094e336c302523e7433f6 /sys | |
parent | 4f36141373c640c18bffb4c94293a00eb8e9952e (diff) | |
download | FreeBSD-src-ebcf841898f4b6d22de28bdd09d8cc7de800ec71.zip FreeBSD-src-ebcf841898f4b6d22de28bdd09d8cc7de800ec71.tar.gz |
Move two global variables to automatic variables within the
only function where they are used (they are used with TCPDEBUG only).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 | ||||
-rw-r--r-- | sys/netinet/tcp_reass.c | 5 |
2 files changed, 6 insertions, 4 deletions
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 <netinet/tcp_debug.h> -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 <netinet/tcp_debug.h> -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 |