summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2016-04-13 05:25:45 +0000
committerjasper <jasper@openbsd.org>2016-04-13 05:25:45 +0000
commit372e316826605c248792234b866df2ac445a04d5 (patch)
treeba9715a333ce8174c65328e1f117fa5988c40495
parentadd missing arguments to debug printf (diff)
downloadwireguard-openbsd-372e316826605c248792234b866df2ac445a04d5.tar.xz
wireguard-openbsd-372e316826605c248792234b866df2ac445a04d5.zip
remove dumpfilter related code; it's a leftover from pftop-proper and not used
in systat ok canacar@
-rw-r--r--usr.bin/systat/pftop.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.bin/systat/pftop.c b/usr.bin/systat/pftop.c
index cde86867503..9e5dfdda7ac 100644
--- a/usr.bin/systat/pftop.c
+++ b/usr.bin/systat/pftop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pftop.c,v 1.33 2016/01/16 03:30:26 canacar Exp $ */
+/* $OpenBSD: pftop.c,v 1.34 2016/04/13 05:25:45 jasper Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar
* Copyright (c) 2001 Daniel Hartmeier
@@ -116,7 +116,6 @@ u_int32_t num_queues = 0;
int cachestates = 0;
char *filter_string = NULL;
-int dumpfilter = 0;
#define MIN_LABEL_SIZE 5
#define ANCHOR_FLD_SIZE 12
@@ -682,14 +681,6 @@ read_states(void)
alloc_buf(num_states_all);
}
- if (dumpfilter) {
- int fd = open("state.dmp", O_WRONLY|O_CREAT|O_EXCL, 0);
- if (fd > 0) {
- write(fd, state_buf, ps.ps_len);
- close(fd);
- }
- }
-
num_states = num_states_all;
for (n = 0; n<num_states_all; n++)
state_ord[n] = n;