summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-08-26 06:05:06 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-08-26 06:05:06 +0000
commit6143013f92c3d077686e7e1006f8cd9f7605043f (patch)
tree86c993cf50067aaa9ed1ad22a95a68b95a16e4bb
parentbf8abec2eef9f50fb3394207211ad3ad489482ac (diff)
errno is unset, use fatalx(3) instead of fatal(3).
-rw-r--r--sbin/dhcpleased/engine.c6
1 files 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 <florian@openbsd.org>
@@ -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;
}
}