summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 125e5cc)
raw | patch | inline | side by side (parent: 125e5cc)
author | Doug MacEachern <dougm@hyperic.com> | |
Thu, 22 Oct 2009 22:50:57 +0000 (15:50 -0700) | ||
committer | Doug MacEachern <dougm@hyperic.com> | |
Thu, 22 Oct 2009 22:50:57 +0000 (15:50 -0700) |
cc1: warnings being treated as errors
processes.c: In function 'ps_read':
processes.c:343: warning: 'pse.io_rchar' is used uninitialized in this function
processes.c:1436: note: 'pse.io_rchar' was declared here
processes.c:344: warning: 'pse.io_wchar' is used uninitialized in this function
processes.c:1436: note: 'pse.io_wchar' was declared here
processes.c:345: warning: 'pse.io_syscr' is used uninitialized in this function
processes.c:1436: note: 'pse.io_syscr' was declared here
processes.c:346: warning: 'pse.io_syscw' is used uninitialized in this function
processes.c:1436: note: 'pse.io_syscw' was declared here
processes.c: In function 'ps_read':
processes.c:343: warning: 'pse.io_rchar' is used uninitialized in this function
processes.c:1436: note: 'pse.io_rchar' was declared here
processes.c:344: warning: 'pse.io_wchar' is used uninitialized in this function
processes.c:1436: note: 'pse.io_wchar' was declared here
processes.c:345: warning: 'pse.io_syscr' is used uninitialized in this function
processes.c:1436: note: 'pse.io_syscr' was declared here
processes.c:346: warning: 'pse.io_syscw' is used uninitialized in this function
processes.c:1436: note: 'pse.io_syscw' was declared here
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index a9cfe60b22b9b6938bee4c0ac1238f529cf8651a..5ef4acc039907743d1f22180f23871ec5f9ce326 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
* 1000
+ procs[i].ki_rusage.ru_stime.tv_usec;
+ /* no io data */
+ pse.io_rchar = -1;
+ pse.io_wchar = -1;
+ pse.io_syscr = -1;
+ pse.io_syscw = -1;
+
switch (procs[i].ki_stat)
{
case SSTOP: stopped++; break;