mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
SunOS: silences compiler warnings
This commit is contained in:
@@ -339,8 +339,8 @@ const char* ffDetectLocalIps(const FFLocalIpOptions* options, FFlist* results)
|
||||
}
|
||||
}
|
||||
|
||||
FF_DEBUG("Processing interface %s (family=%d, flags=0x%x)",
|
||||
ifa->ifa_name, ifa->ifa_addr->sa_family, ifa->ifa_flags);
|
||||
FF_DEBUG("Processing interface %s (family=%d, flags=0x%lx)",
|
||||
ifa->ifa_name, ifa->ifa_addr->sa_family, (unsigned long) ifa->ifa_flags);
|
||||
|
||||
FFAdapter* adapter = NULL;
|
||||
FF_LIST_FOR_EACH(FFAdapter, x, adapters)
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
const char* ffDetectMemory(FFMemoryResult* ram)
|
||||
{
|
||||
ram->bytesTotal = sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
|
||||
ram->bytesUsed = ram->bytesTotal - sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
|
||||
ram->bytesTotal = (uint64_t) sysconf(_SC_PHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
|
||||
ram->bytesUsed = ram->bytesTotal - (uint64_t) sysconf(_SC_AVPHYS_PAGES) * instance.state.platform.sysinfo.pageSize;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user