]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hostname: use argument comment name transient_hostname
authorJelle van der Waa <jvanderwaa@redhat.com>
Wed, 7 May 2025 17:11:16 +0000 (19:11 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Wed, 14 May 2025 09:15:45 +0000 (11:15 +0200)
src/hostname/hostnamed.c

index 1bfd14b0d8c9e99569ea767f308bfa56e3bf9b77..5fe4e7e07f9d59274d84e8b49bb572dbb1a3dda3 100644 (file)
@@ -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 */