summaryrefslogtreecommitdiff
path: root/src/network/networkd-dhcp4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-dhcp4.c')
-rw-r--r--src/network/networkd-dhcp4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
index 242b977f60..6f06e2218d 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -1507,7 +1507,7 @@ int config_parse_dhcp_max_attempts(
}
if (streq(rvalue, "infinity")) {
- network->dhcp_max_attempts = (uint64_t) -1;
+ network->dhcp_max_attempts = UINT64_MAX;
return 0;
}