summaryrefslogtreecommitdiffstats
path: root/HostnameMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-06 13:13:16 +0200
committerBenBE <BenBE@geshi.org>2021-03-04 23:57:45 +0100
commit2d1042adb382aa95456beff31b40abb7196567a0 (patch)
tree29e1a48c2927ce887a777b20847efae16b73c977 /HostnameMeter.c
parent23c5b9ce3c50a7c7aaa9a5734cad50d12610d8d8 (diff)
Save text buffer in Meter
Diffstat (limited to 'HostnameMeter.c')
-rw-r--r--HostnameMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/HostnameMeter.c b/HostnameMeter.c
index 924def11..4968fd30 100644
--- a/HostnameMeter.c
+++ b/HostnameMeter.c
@@ -20,8 +20,8 @@ static const int HostnameMeter_attributes[] = {
HOSTNAME
};
-static void HostnameMeter_updateValues(ATTR_UNUSED Meter* this, char* buffer, size_t size) {
- Platform_getHostname(buffer, size);
+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