From: Marc Fournier Date: Mon, 2 May 2016 14:07:47 +0000 (+0200) Subject: processes: remove initialisation of unexisting variables X-Git-Tag: collectd-5.5.2~23 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=9d8118420f6cdc304f49d56464428b417d42f981 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 --- 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;