From 9d8118420f6cdc304f49d56464428b417d42f981 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Mon, 2 May 2016 16:07:47 +0200 Subject: [PATCH 1/1] processes: remove initialisation of unexisting variables Partial revert of 1f0156c, which broke the build on Solaris and OpenBSD. The context-switch reporting code is only part of master at the moment. Fixes: #1674 --- src/processes.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/processes.c b/src/processes.c index 122ca7a1..a17c127d 100644 --- a/src/processes.c +++ b/src/processes.c @@ -2051,9 +2051,6 @@ static int ps_read (void) pse.io_syscr = -1; pse.io_syscw = -1; - pse.cswitch_vol = -1; - pse.cswitch_invol = -1; - ps_list_add (procs[i].p_comm, have_cmdline ? cmdline : NULL, &pse); switch (procs[i].p_stat) @@ -2296,9 +2293,6 @@ static int ps_read (void) pse.io_syscr = ps.io_syscr; pse.io_syscw = ps.io_syscw; - pse.cswitch_vol = -1; - pse.cswitch_invol = -1; - switch (state) { case 'R': running++; break; -- 2.11.0