mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
use size_t
This commit is contained in:
parent
2e8a63f0d1
commit
c704a4a23e
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ xacpi(int first)
|
|||
{
|
||||
int rv;
|
||||
int val;
|
||||
long len;
|
||||
size_t len;
|
||||
|
||||
len = sizeof(val);
|
||||
rv = sysctlbyname("hw.acpi.battery.life", &val, &len, nil, 0);
|
||||
|
|
Loading…
Reference in a new issue