]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/generator/network-generator.c
hostname-util: flagsify hostname_is_valid(), drop machine_name_is_valid()
[thirdparty/systemd.git] / src / network / generator / network-generator.c
index 2fa21a067a4d3d7a142676a7c0e6e1025eca4943..f9b51d8b7bf05ecd64f49ef55f7b758a3d0b7ff3 100644 (file)
@@ -601,7 +601,7 @@ static int parse_cmdline_ip_address(Context *context, int family, const char *va
 
         if (p != value) {
                 hostname = strndupa(value, p - value);
-                if (!hostname_is_valid(hostname, false))
+                if (!hostname_is_valid(hostname, 0))
                         return -EINVAL;
         }