export tcpstates for _KERNEL and remove tcp_usrreq.c's incorrect

declartion.
This commit is contained in:
matt 2004-04-20 22:54:31 +00:00
parent c729bdc72d
commit 30e63c6236
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_fsm.h,v 1.13 2003/11/20 16:21:48 yamt Exp $ */
/* $NetBSD: tcp_fsm.h,v 1.14 2004/04/20 22:54:31 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -93,6 +93,8 @@ const char * const tcpstates[] = {
"ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1", "CLOSING",
"LAST_ACK", "FIN_WAIT_2", "TIME_WAIT",
};
#elif defined(_KERNEL)
extern const char * const tcpstates[];
#endif
#endif /* _NETINET_TCP_FSM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_usrreq.c,v 1.88 2004/03/29 04:59:03 atatat Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.89 2004/04/20 22:54:31 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.88 2004/03/29 04:59:03 atatat Exp $");
__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.89 2004/04/20 22:54:31 matt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@ -155,7 +155,6 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.88 2004/03/29 04:59:03 atatat Exp $
/*
* TCP protocol interface to socket abstraction.
*/
extern char *tcpstates[];
/*
* Process a TCP user request for TCP tb. If this is a send request