From: florian Date: Mon, 26 Aug 2024 06:05:05 +0000 (+0000) Subject: errno is unset, use fatalx(3) instead of fatal(3). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c7074a52600793dbd50ef38b24c55460fbcfdb2b;p=openbsd errno is unset, use fatalx(3) instead of fatal(3). --- diff --git a/sbin/dhcpleased/engine.c b/sbin/dhcpleased/engine.c index 82c7793c473..265d52feb13 100644 --- a/sbin/dhcpleased/engine.c +++ b/sbin/dhcpleased/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.47 2024/08/26 06:04:24 florian Exp $ */ +/* $OpenBSD: engine.c,v 1.48 2024/08/26 06:05:05 florian Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser @@ -1433,7 +1433,7 @@ state_transition(struct dhcpleased_iface *iface, enum if_state new_state) iface->xid = arc4random(); break; case IF_BOUND: - fatal("invalid transition Bound -> Init"); + fatalx("invalid transition Bound -> Init"); break; } request_dhcp_discover(iface); @@ -1497,7 +1497,7 @@ state_transition(struct dhcpleased_iface *iface, enum if_state new_state) iface->timo.tv_sec = iface->ipv6_only_time; break; case IF_BOUND: - fatal("invalid transition Bound -> IPv6 only"); + fatalx("invalid transition Bound -> IPv6 only"); break; } }