processes: remove initialisation of unexisting variables
authorMarc Fournier <marc.fournier@camptocamp.com>
Mon, 2 May 2016 14:07:47 +0000 (16:07 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 2 May 2016 14:07:47 +0000 (16:07 +0200)
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

index 122ca7a..a17c127 100644 (file)
@@ -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;