summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-01-02 20:03:29 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-01-02 20:03:29 +0000
commit640797e71bb5ebd81fc54680c4086555c672cc9b (patch)
treef0becef817eba4d61076dda200489ad91a1c1f02
parent5e02f6231d1553cf9ee01ccd52ef0636f336d523 (diff)
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);