Guard use of "ostate" with #ifdef TCP_DEBUG in tcp_usrreq().

Don't put semicolons at the end of "#define token value".
This commit is contained in:
simonb 2002-10-22 03:14:16 +00:00
parent 4dd4549b31
commit d79a5f79da
1 changed files with 11 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_usrreq.c,v 1.73 2002/07/03 21:36:58 thorpej Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.74 2002/10/22 03:14:16 simonb Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -102,7 +102,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.73 2002/07/03 21:36:58 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.74 2002/10/22 03:14:16 simonb Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@ -180,7 +180,9 @@ tcp_usrreq(so, req, m, nam, control, p)
struct tcpcb *tp = NULL;
int s;
int error = 0;
int ostate;
#ifdef TCP_DEBUG
int ostate = 0;
#endif
int family; /* family of the socket */
family = so->so_proto->pr_domain->dom_family;
@ -274,7 +276,9 @@ tcp_usrreq(so, req, m, nam, control, p)
#ifdef KPROF
tcp_acounts[tp->t_state][req]++;
#endif
#ifdef TCP_DEBUG
ostate = tp->t_state;
#endif
}
#endif
#ifdef INET6
@ -284,11 +288,11 @@ tcp_usrreq(so, req, m, nam, control, p)
#ifdef KPROF
tcp_acounts[tp->t_state][req]++;
#endif
#ifdef TCP_DEBUG
ostate = tp->t_state;
#endif
}
#endif
else
ostate = 0;
switch (req) {
@ -734,11 +738,11 @@ tcp_ctloutput(op, so, level, optname, mp)
}
#ifndef TCP_SENDSPACE
#define TCP_SENDSPACE 1024*16;
#define TCP_SENDSPACE 1024*16
#endif
int tcp_sendspace = TCP_SENDSPACE;
#ifndef TCP_RECVSPACE
#define TCP_RECVSPACE 1024*16;
#define TCP_RECVSPACE 1024*16
#endif
int tcp_recvspace = TCP_RECVSPACE;