From d3af4e670d65a4d7b4a0509efd53473578afb96c Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Fri, 5 Mar 2021 16:54:30 +1100 Subject: Update PCP platform to use the old hostname API call Fixes CI builds which are on an old version of PCP. --- pcp/Platform.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pcp') diff --git a/pcp/Platform.c b/pcp/Platform.c index 4fcf3db1..91b92673 100644 --- a/pcp/Platform.c +++ b/pcp/Platform.c @@ -654,7 +654,8 @@ void Platform_setZfsCompressedArcValues(Meter* this) { } 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) { -- cgit v1.2.3