From 83ba6762cc43d9db581b979bb5e3445669e46cc2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 25 Nov 2024 18:33:56 +0100 Subject: Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145). Signed-off-by: Daniel Baumann --- src/registry/registry_internals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/registry/registry_internals.c') diff --git a/src/registry/registry_internals.c b/src/registry/registry_internals.c index 54fad4254..51a861866 100644 --- a/src/registry/registry_internals.c +++ b/src/registry/registry_internals.c @@ -266,7 +266,7 @@ static inline int is_machine_guid_blacklisted(const char *guid) { return 0; } -char *registry_get_this_machine_hostname(void) { +const char *registry_get_this_machine_hostname(void) { return registry.hostname; } @@ -315,7 +315,7 @@ const char *registry_get_this_machine_guid(void) { close(fd); } - setenv("NETDATA_REGISTRY_UNIQUE_ID", guid, 1); + nd_setenv("NETDATA_REGISTRY_UNIQUE_ID", guid, 1); return guid; } -- cgit v1.2.3