summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2005-01-31 15:06:31 +0000
committerhenning <henning@openbsd.org>2005-01-31 15:06:31 +0000
commit7bd6faa864b141fd59b019745ace1aea2f3cef1a (patch)
treeac01a17bc2f40822be56a6855402178bb9677715
parentthe most excellent drinkmeister dr.mendeleev (diff)
downloadwireguard-openbsd-7bd6faa864b141fd59b019745ace1aea2f3cef1a.tar.xz
wireguard-openbsd-7bd6faa864b141fd59b019745ace1aea2f3cef1a.zip
-Wsign-compare clean, Andrey Matveev <andrushock@korovino.net>
-rw-r--r--usr.sbin/authpf/authpf.c6
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;
}