aboutsummaryrefslogtreecommitdiffstats
path: root/HostnameMeter.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:35:19 +0200
commit69f439eff387a6ecb52734e400b297a3c85f2285 (patch)
tree2a988b7868b749654796183ba70b4272965da1bf /HostnameMeter.c
parentc55320e9e2a8916e911bcd39ab37b79e3a7d03b2 (diff)
downloaddebian_htop-upstream/3.1.0.tar.gz
debian_htop-upstream/3.1.0.tar.bz2
debian_htop-upstream/3.1.0.zip
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'HostnameMeter.c')
-rw-r--r--HostnameMeter.c8
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 = {

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