From c7074a52600793dbd50ef38b24c55460fbcfdb2b Mon Sep 17 00:00:00 2001 From: florian Date: Mon, 26 Aug 2024 06:05:05 +0000 Subject: [PATCH] errno is unset, use fatalx(3) instead of fatal(3). --- sbin/dhcpleased/engine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } -- 2.20.1