mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
stratum: warning fix for recent gcc
was -Wunused-result, useless but...
This commit is contained in:
parent
f342017d31
commit
67d3e6aeed
1 changed files with 2 additions and 2 deletions
|
@ -698,8 +698,8 @@ int resident_size()
|
|||
int sz, res = 0;
|
||||
FILE *fp = fopen("/proc/self/statm", "r");
|
||||
if (fp) {
|
||||
fscanf(fp,"%d", &sz);
|
||||
fscanf(fp,"%d", &res);
|
||||
int p = fscanf(fp, "%d", &sz);
|
||||
if (p) p += fscanf(fp, "%d", &res);
|
||||
fclose(fp);
|
||||
}
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue