summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1999-02-04 03:27:43 +0000
committerMike Smith <msmith@FreeBSD.org>1999-02-04 03:27:43 +0000
commitea95d6917a7f28b1697bf8005d389b2ce7b212b9 (patch)
tree536182bee3df6f02ab48e5f717b08a5246a8f9fd /sys/netinet/tcp_subr.c
parent609b6256fd7fb3249b6cc4b33e9dc37416dc9a99 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 49c17094c2b6..b9355da79509 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.50 1999/02/03 08:59:30 msmith Exp $
+ * $Id: tcp_subr.c,v 1.51 1999/02/04 03:02:56 msmith Exp $
*/
#include "opt_compat.h"
@@ -136,7 +136,7 @@ tcp_init()
tcbinfo.listhead = &tcb;
if (!(getenv_int("net.inet.tcp.tcbhashsize", &hashsize)))
hashsize = TCBHASHSIZE;
- if ((1 << (ffs(hashsize) - 1)) != hashsize) {
+ if (!powerof2(hashsize)) {
printf("WARNING: TCB hash size not a power of 2\n");
hashsize = 512; /* safe default */
}