use size_t

This commit is contained in:
rsc 2005-12-30 20:41:58 +00:00
parent 2e8a63f0d1
commit c704a4a23e

View file

@ -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);