summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2016-01-02 20:03:28 +0000
committerbenno <benno@openbsd.org>2016-01-02 20:03:28 +0000
commitbff63f6aa0739baba6ee0e08143667473a70dea8 (patch)
tree6fb896c15ef93f59c3edf1eb83c308aece748240
parentgarbage collect unused variable tm (diff)
downloadwireguard-openbsd-bff63f6aa0739baba6ee0e08143667473a70dea8.tar.xz
wireguard-openbsd-bff63f6aa0739baba6ee0e08143667473a70dea8.zip
make sure debug will be initialized, choose "unknown" (because pfctl
loglevel_to_string() uses "unknown" as well) ok kettenis@ florian@
-rw-r--r--usr.bin/systat/pf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/systat/pf.c b/usr.bin/systat/pf.c
index 08336183d34..6e282bb7359 100644
--- a/usr.bin/systat/pf.c
+++ b/usr.bin/systat/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.7 2015/01/16 00:03:37 deraadt Exp $ */
+/* $OpenBSD: pf.c,v 1.8 2016/01/02 20:03:28 benno Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar <canacar@openbsd.org>
*
@@ -259,6 +259,9 @@ print_pf(void)
case LOG_DEBUG:
debug = "debug";
break;
+ default:
+ debug = "unknown";
+ break;
}
ADD_LINE_S("pf", "Debug", debug);