summaryrefslogtreecommitdiffstats
path: root/pcp
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-05 16:54:30 +1100
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commitd3af4e670d65a4d7b4a0509efd53473578afb96c (patch)
treea90f42b43f577f30d0e7c0250e97417ba0cc9fa8 /pcp
parent956b2ae70ccd7bbb91f20176e9ad4a6a2175931c (diff)
Update PCP platform to use the old hostname API call
Fixes CI builds which are on an old version of PCP.
Diffstat (limited to 'pcp')
-rw-r--r--pcp/Platform.c3
1 files changed, 2 insertions, 1 deletions
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy