Module Name:    src
Committed By:   christos
Date:           Fri Mar 10 02:21:37 UTC 2017

Modified Files:
        src/sys/net/npf: npf_tableset.c

Log Message:
fix MIN/MAX confusion.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/net/npf/npf_tableset.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/npf/npf_tableset.c
diff -u src/sys/net/npf/npf_tableset.c:1.26 src/sys/net/npf/npf_tableset.c:1.27
--- src/sys/net/npf/npf_tableset.c:1.26	Mon Jan  2 16:49:51 2017
+++ src/sys/net/npf/npf_tableset.c	Thu Mar  9 21:21:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_tableset.c,v 1.26 2017/01/02 21:49:51 rmind Exp $	*/
+/*	$NetBSD: npf_tableset.c,v 1.27 2017/03/10 02:21:37 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009-2016 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.26 2017/01/02 21:49:51 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_tableset.c,v 1.27 2017/03/10 02:21:37 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -369,7 +369,7 @@ npf_table_create(const char *name, u_int
 		LIST_INIT(&t->t_list);
 		break;
 	case NPF_TABLE_HASH:
-		size = MIN(size, 128);
+		size = MAX(size, 128);
 		t->t_hashl = hashinit(size, HASH_LIST, true, &t->t_hashmask);
 		if (t->t_hashl == NULL) {
 			goto out;

Reply via email to