Declare tcp_seq and tcp_cc as fixed-size types. Half fixed type

mismatches exposed by this (the prototype for tcp_respond() didn't
match the  function definition lexically, and still depends on a
gcc feature to match if ints have more than 32 bits).
This commit is contained in:
Bruce Evans 1998-07-13 11:09:52 +00:00
parent 99c819ef77
commit 07a4df4fee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37622
2 changed files with 5 additions and 5 deletions

View File

@ -31,14 +31,14 @@
* SUCH DAMAGE.
*
* @(#)tcp.h 8.1 (Berkeley) 6/10/93
* $Id: tcp.h,v 1.8 1997/02/22 09:41:37 peter Exp $
* $Id: tcp.h,v 1.9 1998/06/08 09:47:42 bde Exp $
*/
#ifndef _NETINET_TCP_H_
#define _NETINET_TCP_H_
typedef u_long tcp_seq;
typedef u_long tcp_cc; /* connection count per rfc1644 */
typedef u_int32_t tcp_seq;
typedef u_int32_t tcp_cc; /* connection count per rfc1644 */
/*
* TCP header.

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_var.h 8.4 (Berkeley) 5/24/95
* $Id: tcp_var.h,v 1.44 1998/05/15 20:11:35 wollman Exp $
* $Id: tcp_var.h,v 1.45 1998/06/27 07:30:45 jhay Exp $
*/
#ifndef _NETINET_TCP_VAR_H_
@ -362,7 +362,7 @@ struct tcpcb *
int tcp_output __P((struct tcpcb *));
void tcp_quench __P((struct inpcb *, int));
void tcp_respond __P((struct tcpcb *,
struct tcpiphdr *, struct mbuf *, u_long, u_long, int));
struct tcpiphdr *, struct mbuf *, tcp_seq, tcp_seq, int));
struct rtentry *
tcp_rtlookup __P((struct inpcb *));
void tcp_setpersist __P((struct tcpcb *));