summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorPeter Stromberg <wilfried@cvs.openbsd.org>2007-10-24 13:07:39 +0000
committerPeter Stromberg <wilfried@cvs.openbsd.org>2007-10-24 13:07:39 +0000
commite9403787128f83049b21bdafba7d6e69e1b58ddd (patch)
tree2ca746e4e1d188f74dd3f51421f136310dcd8b26 /sbin
parent59b065613b3e4c6bc19071674a0de7a561ee1272 (diff)
HW_PHYSMEM is unsigned
yuck & ok henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index b1682e049b9..3d4f257a26f 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.270 2007/10/15 02:16:35 deraadt Exp $ */
+/* $OpenBSD: pfctl.c,v 1.271 2007/10/24 13:07:38 wilfried Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1526,7 +1526,7 @@ pfctl_init_options(struct pfctl *pf)
mib[1] = HW_PHYSMEM;
size = sizeof(mem);
(void) sysctl(mib, 2, &mem, &size, NULL, 0);
- if (mem <= 100*1024*1024)
+ if ((unsigned)mem <= 100*1024*1024)
pf->limit[PF_LIMIT_TABLE_ENTRIES] = PFR_KENTRY_HIWAT_SMALL;
pf->debug = PF_DEBUG_URGENT;