projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
befd5ea
)
nmeter: tiny shrink
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 28 Jun 2008 23:42:03 +0000
(23:42 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sat, 28 Jun 2008 23:42:03 +0000
(23:42 -0000)
procps/nmeter.c
patch
|
blob
|
history
diff --git
a/procps/nmeter.c
b/procps/nmeter.c
index
86007ee
..
96d0bb9
100644
(file)
--- a/
procps/nmeter.c
+++ b/
procps/nmeter.c
@@
-228,7
+228,7
@@
static int rdval_loadavg(const char* p, ullong *vec, ...)
// 3 1 hda1 0 0 0 0 <- ignore if only 4 fields
static int rdval_diskstats(const char* p, ullong *vec)
{
- ullong rd =
0; // to avoid "warning: 'rd' might be used uninitialized"
+ ullong rd =
rd; // for compiler
int indexline = 0;
vec[0] = 0;
vec[1] = 0;