aboutsummaryrefslogtreecommitdiffstats
path: root/HostnameMeter.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2021-09-21 08:35:20 +0200
committerDaniel Lange <DLange@git.local>2021-09-21 08:35:20 +0200
commita2b6942d15d220bb0518003d4f818a922d88e9f9 (patch)
tree7f60a44dec34af24da75b8d5b68c88eca94b9f6a /HostnameMeter.c
parent37d8824862a2f6b9375022e1c45ba4548162650f (diff)
parent69f439eff387a6ecb52734e400b297a3c85f2285 (diff)
downloaddebian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.tar.gz
debian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.tar.bz2
debian_htop-a2b6942d15d220bb0518003d4f818a922d88e9f9.zip
Update upstream source from tag 'upstream/3.1.0'
Update to upstream version '3.1.0' with Debian dir d4ecdd99a38d7105de46689cebcb051bf0046a76
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