From 88a66cfbd59336116184ed8aeafa945137e9f022 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Wed, 7 May 2025 19:11:16 +0200 Subject: [PATCH] hostname: use argument comment name transient_hostname --- src/hostname/hostnamed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 1bfd14b0d8c..5fe4e7e07f9 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -685,7 +685,7 @@ static char* context_fallback_icon_name(Context *c) { static int context_update_kernel_hostname( Context *c, - const char *transient_hn) { + const char *transient_hostname) { _cleanup_free_ char *_hn_free = NULL; const char *hn; @@ -700,8 +700,8 @@ static int context_update_kernel_hostname( hns = HOSTNAME_STATIC; /* ... the transient hostname, (ie: DHCP) comes next ... */ - } else if (transient_hn) { - hn = transient_hn; + } else if (transient_hostname) { + hn = transient_hostname; hns = HOSTNAME_TRANSIENT; /* ... and the ultimate fallback */ -- 2.47.3