PERFORCE change 166204 for review

Andre Oppermann andre at FreeBSD.org
Fri Jul 17 17:30:06 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=166204

Change 166204 by andre at andre_duo on 2009/07/17 17:29:41

	Fixups.

Affected files ...

.. //depot/projects/tcp_reass/netinet/tcp_reass.c#31 edit

Differences ...

==== //depot/projects/tcp_reass/netinet/tcp_reass.c#31 (text+ko) ====

@@ -152,7 +152,7 @@
 static void	tcp_reass_merge(struct tcpcb *, struct trq *, struct trq *);
 
 static __inline void
-sack_track(struct trq *tqe) {
+sack_track(struct tcpcb *tp, struct trq *tqe) {
 	if (LIST_FIRST(&tp->t_trq_sack) != (tqe)) {
 		LIST_REMOVE((tqe), trq_s);
 		LIST_INSERT_HEAD(&tp->t_trq_sack, (tqe), trq_s);
@@ -174,9 +174,9 @@
 
 static u_int
 m_storagesize(m) {
-	u_int mcnt;
+	u_int mcnt;
 
-	for (mcnt = 0, m; n; m = m->m_next)
+	for (mcnt = 0; m != NULL; m = m->m_next)
 		mcnt += (m->m_flags & M_EXT) ?
 		    m->m_ext.ext_size + MSIZE : MSIZE;
 	return (mcnt);


More information about the p4-projects mailing list