mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 12:35:41 +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);
|
||||
|
||||
long ret;
|
||||
int r = sscanf(s, "%lu", &ret);
|
||||
int r = sscanf(s, "%ld", &ret);
|
||||
assert(r == 1);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue