mirror of https://github.com/xzeldon/htop.git
Update PCP platform to use the old hostname API call
Fixes CI builds which are on an old version of PCP.
This commit is contained in:
parent
956b2ae70c
commit
d3af4e670d
|
@ -654,7 +654,8 @@ void Platform_setZfsCompressedArcValues(Meter* this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform_getHostname(char* buffer, size_t size) {
|
void Platform_getHostname(char* buffer, size_t size) {
|
||||||
pmGetHostName(pcp->context, buffer, size);
|
const char* hostname = pmGetContextHostName(pcp->context);
|
||||||
|
String_safeStrncpy(buffer, hostname, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform_getRelease(char** string) {
|
void Platform_getRelease(char** string) {
|
||||||
|
|
Loading…
Reference in New Issue