mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
module/battery: we're scanning into a signed long
This commit is contained in:
parent
76995ddcd5
commit
f253bbebd2
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ readint_from_fd(int fd)
|
||||||
assert(s != NULL);
|
assert(s != NULL);
|
||||||
|
|
||||||
long ret;
|
long ret;
|
||||||
int r = sscanf(s, "%lu", &ret);
|
int r = sscanf(s, "%ld", &ret);
|
||||||
assert(r == 1);
|
assert(r == 1);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue