diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2016-04-13 05:25:46 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2016-04-13 05:25:46 +0000 |
commit | 8da5ba7130e9309cd7078df6eb5ca3c3449f1dd5 (patch) | |
tree | e3ff7d4570a8958129ab88880b73fb543437e85f /usr.bin/systat | |
parent | 1fb185ee12730afe01fbb6c26d2b22e35876f87c (diff) |
remove dumpfilter related code; it's a leftover from pftop-proper and not used
in systat
ok canacar@
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/pftop.c | 11 |
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; |