Move two global variables to automatic variables within the

only function where they are used (they are used with TCPDEBUG only).
This commit is contained in:
Luigi Rizzo 2002-06-23 21:22:56 +00:00
parent 3c75ad7ec0
commit 410bb1bfe2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98703
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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