From 69f439eff387a6ecb52734e400b297a3c85f2285 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Tue, 21 Sep 2021 08:35:19 +0200 Subject: New upstream version 3.1.0 --- HostnameMeter.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'HostnameMeter.c') diff --git a/HostnameMeter.c b/HostnameMeter.c index af8e349..b1570c8 100644 --- a/HostnameMeter.c +++ b/HostnameMeter.c @@ -9,19 +9,17 @@ in the source distribution for its full text. #include "HostnameMeter.h" -#include - #include "CRT.h" #include "Object.h" +#include "Platform.h" static const int HostnameMeter_attributes[] = { HOSTNAME }; -static void HostnameMeter_updateValues(Meter* this, char* buffer, size_t size) { - (void) this; - gethostname(buffer, size - 1); +static void HostnameMeter_updateValues(Meter* this) { + Platform_getHostname(this->txtBuffer, sizeof(this->txtBuffer)); } const MeterClass HostnameMeter_class = { -- cgit v1.2.3