summaryrefslogtreecommitdiff
path: root/src/firstboot/firstboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firstboot/firstboot.c')
-rw-r--r--src/firstboot/firstboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index df98212da8..01a3d38746 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -392,7 +392,7 @@ static int prompt_hostname(void) {
}
/* Get rid of the trailing dot that we allow, but don't want to see */
- arg_hostname = hostname_cleanup(h, false);
+ arg_hostname = hostname_cleanup(h);
h = NULL;
break;
}
@@ -786,7 +786,7 @@ static int parse_argv(int argc, char *argv[]) {
return -EINVAL;
}
- hostname_cleanup(optarg, false);
+ hostname_cleanup(optarg);
if (free_and_strdup(&arg_hostname, optarg) < 0)
return log_oom();