forked from mirror/smcFanControl
Fix compile warning
Fix crash if smc failed to get current authorization during first use
This commit is contained in:
@ -107,7 +107,7 @@ static NSArray *allSensors = nil;
|
||||
SMCVal_t val;
|
||||
int totalFans;
|
||||
SMCReadKey2("FNum", &val,conn);
|
||||
totalFans = _strtoul(val.bytes, val.dataSize, 10);
|
||||
totalFans = _strtoul((char *)val.bytes, val.dataSize, 10);
|
||||
return totalFans;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user