mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1016631 - Cosmetic fix to use correct type for sysctl()'s 2nd argument. Also s/NULL/nullptr/ style fix in my code. r=gcp, r=vladan
This commit is contained in:
parent
c0e1b525ed
commit
b4bfd61709
@ -431,10 +431,10 @@ nsresult LoadInfo::UpdateSystemLoad()
|
||||
CTL_KERN,
|
||||
KERN_CP_TIME,
|
||||
};
|
||||
size_t miblen = sizeof(mib) / sizeof(mib[0]);
|
||||
if (sysctl(mib, miblen, &cp_time, &sz, NULL, 0)) {
|
||||
u_int miblen = sizeof(mib) / sizeof(mib[0]);
|
||||
if (sysctl(mib, miblen, &cp_time, &sz, nullptr, 0)) {
|
||||
#else
|
||||
if (sysctlbyname("kern.cp_time", &cp_time, &sz, NULL, 0)) {
|
||||
if (sysctlbyname("kern.cp_time", &cp_time, &sz, nullptr, 0)) {
|
||||
#endif // KERN_CP_TIME
|
||||
LOG(("sysctl kern.cp_time failed"));
|
||||
return NS_ERROR_FAILURE;
|
||||
|
@ -188,7 +188,7 @@ nsDebugImpl::GetIsDebuggerAttached(bool* aResult)
|
||||
1,
|
||||
#endif
|
||||
};
|
||||
size_t mibSize = sizeof(mib) / sizeof(int);
|
||||
u_int mibSize = sizeof(mib) / sizeof(int);
|
||||
|
||||
KINFO_PROC info;
|
||||
size_t infoSize = sizeof(info);
|
||||
|
Loading…
Reference in New Issue
Block a user