diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-01-31 15:06:32 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-01-31 15:06:32 +0000 |
commit | 36a8e711e58615b5a2fba10d44c4a10b92142aa5 (patch) | |
tree | be024f42992977a72a6c0d0d5be9f19ab7f4f3d5 /usr.sbin | |
parent | b5e7d2f4f982fbcb5889c01afd9b9d170512ab1e (diff) |
-Wsign-compare clean, Andrey Matveev <andrushock@korovino.net>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/authpf/authpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c index 79b32a26a1f..84d4bd48fe5 100644 --- a/usr.sbin/authpf/authpf.c +++ b/usr.sbin/authpf/authpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authpf.c,v 1.86 2004/09/16 18:34:05 deraadt Exp $ */ +/* $OpenBSD: authpf.c,v 1.87 2005/01/31 15:06:31 henning Exp $ */ /* * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org). @@ -168,11 +168,11 @@ main(int argc, char *argv[]) } if ((n = snprintf(rulesetname, sizeof(rulesetname), "%s(%ld)", - luser, (long)getpid())) < 0 || n >= sizeof(rulesetname)) { + luser, (long)getpid())) < 0 || (u_int)n >= sizeof(rulesetname)) { syslog(LOG_INFO, "%s(%ld) too large, ruleset name will be %ld", luser, (long)getpid(), (long)getpid()); if ((n = snprintf(rulesetname, sizeof(rulesetname), "%ld", - (long)getpid())) < 0 || n >= sizeof(rulesetname)) { + (long)getpid())) < 0 || (u_int)n >= sizeof(rulesetname)) { syslog(LOG_ERR, "pid too large for ruleset name"); goto die; } |