Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 14:37:03 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210119 - head/sys/netinet/ipfw
Message-ID:  <201007151437.o6FEb3cj014428@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Thu Jul 15 14:37:02 2010
New Revision: 210119
URL: http://svn.freebsd.org/changeset/base/210119

Log:
  fix a comment and final empty line

Modified:
  head/sys/netinet/ipfw/dn_heap.c

Modified: head/sys/netinet/ipfw/dn_heap.c
==============================================================================
--- head/sys/netinet/ipfw/dn_heap.c	Thu Jul 15 14:34:56 2010	(r210118)
+++ head/sys/netinet/ipfw/dn_heap.c	Thu Jul 15 14:37:02 2010	(r210119)
@@ -514,9 +514,12 @@ dn_ht_scan(struct dn_ht *ht, int (*fn)(v
 }
 
 /*
- * Similar to dn_ht_scan(), except thah the scan is performed only
+ * Similar to dn_ht_scan(), except that the scan is performed only
  * in the bucket 'bucket'. The function returns a correct bucket number if
- * the original is invalid
+ * the original is invalid.
+ * If the callback returns DNHT_SCAN_END, the function move the ht->ht[i]
+ * pointer to the last entry processed. Moreover, the bucket number passed
+ * by caller is decremented, because usually the caller increment it.
  */
 int
 dn_ht_scan_bucket(struct dn_ht *ht, int *bucket, int (*fn)(void *, void *),
@@ -547,4 +550,3 @@ dn_ht_scan_bucket(struct dn_ht *ht, int 
 	}
 	return found;
 }
-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007151437.o6FEb3cj014428>