library: eliminate warning '-Wunused-but-set-variable'
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
915b07f4ff
commit
4599117190
@ -641,8 +641,7 @@ static void statm2proc(const char *s, proc_t *restrict P) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void io2proc(const char *s, proc_t *restrict P) {
|
static void io2proc(const char *s, proc_t *restrict P) {
|
||||||
int num;
|
sscanf(s, "rchar: %lu wchar: %lu syscr: %lu syscw: %lu read_bytes: %lu write_bytes: %lu cancelled_write_bytes: %lu",
|
||||||
num = sscanf(s, "rchar: %lu wchar: %lu syscr: %lu syscw: %lu read_bytes: %lu write_bytes: %lu cancelled_write_bytes: %lu",
|
|
||||||
&P->rchar, &P->wchar, &P->syscr,
|
&P->rchar, &P->wchar, &P->syscr,
|
||||||
&P->syscw, &P->read_bytes, &P->write_bytes, &P->cancelled_write_bytes);
|
&P->syscw, &P->read_bytes, &P->write_bytes, &P->cancelled_write_bytes);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user