diff options
author | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-09-21 08:35:19 +0200 |
commit | 69f439eff387a6ecb52734e400b297a3c85f2285 (patch) | |
tree | 2a988b7868b749654796183ba70b4272965da1bf /HostnameMeter.c | |
parent | c55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff) | |
download | debian_htop-f24851b4db9bf65cb5b77d0666a12e569197bb72.tar.gz debian_htop-f24851b4db9bf65cb5b77d0666a12e569197bb72.tar.bz2 debian_htop-f24851b4db9bf65cb5b77d0666a12e569197bb72.zip |
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'HostnameMeter.c')
-rw-r--r-- | HostnameMeter.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 <unistd.h> - #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 = { |