Fix cppcheck warnings. No functional change intended.

This commit is contained in:
Wilson Snyder
2018-06-14 18:59:24 -04:00
parent 5d26bca55c
commit 0eb1d0a84e
14 changed files with 34 additions and 18 deletions
+3 -3
View File
@@ -211,9 +211,9 @@ uint64_t V3Os::memUsageBytes() {
if (!fp) {
return 0;
}
uint64_t size, resident, share, text, lib, data, dt; // All in pages
if (7 != fscanf(fp, "%" VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d %"
VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d %" VL_PRI64 "d",
vluint64_t size, resident, share, text, lib, data, dt; // All in pages
if (7 != fscanf(fp, "%" VL_PRI64 "u %" VL_PRI64 "u %" VL_PRI64 "u %"
VL_PRI64 "u %" VL_PRI64 "u %" VL_PRI64 "u %" VL_PRI64 "u",
&size, &resident, &share, &text, &lib, &data, &dt)) {
fclose(fp);
return 0;