diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-10-07 14:34:41 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-10-07 14:34:41 +0000 |
commit | d9c8c53f017f2cc45df40cda9e68668a47da4746 (patch) | |
tree | 15e384bea4bf1ac66416d084634cf829d5011f4e /sbin | |
parent | d3222095465a4bd51e7ad304be7e3f9b1c49a02f (diff) |
-Wsign-compare clean
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/parse.y | 4 | ||||
-rw-r--r-- | sbin/pfctl/pfctl.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index df1fc52522a..d05e6ac8092 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.163 2002/10/07 14:13:48 dhartmei Exp $ */ +/* $OpenBSD: parse.y,v 1.164 2002/10/07 14:34:40 dhartmei Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -2605,7 +2605,7 @@ top: if (isalnum(c) || c == ':') { do { *p++ = c; - if (p-buf >= sizeof(buf)) { + if ((unsigned)(p-buf) >= sizeof(buf)) { yyerror("string too long"); return (findeol()); } diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c index 9b2aa0a0cc9..071b103cba1 100644 --- a/sbin/pfctl/pfctl.c +++ b/sbin/pfctl/pfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl.c,v 1.84 2002/10/07 14:13:48 dhartmei Exp $ */ +/* $OpenBSD: pfctl.c,v 1.85 2002/10/07 14:34:40 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -439,7 +439,8 @@ pfctl_show_states(int dev, u_int8_t proto, int opts) struct pfioc_states ps; struct pf_state *p; char *inbuf = NULL; - int i, len = 0; + unsigned len = 0; + int i; for (;;) { ps.ps_len = len; |