diff options
author | 2007-10-24 13:07:38 +0000 | |
---|---|---|
committer | 2007-10-24 13:07:38 +0000 | |
commit | 51cef8230f12b09ae0314bc1a1316d475a9ae291 (patch) | |
tree | 6de9e75393011040092bafb002e1700694b15bb2 | |
parent | Unconditionally initialize all channels, regardless of locale. (diff) | |
download | wireguard-openbsd-51cef8230f12b09ae0314bc1a1316d475a9ae291.tar.xz wireguard-openbsd-51cef8230f12b09ae0314bc1a1316d475a9ae291.zip |
HW_PHYSMEM is unsigned
yuck & ok henning@
-rw-r--r-- | sbin/pfctl/pfctl.c | 4 |
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; |