summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-08-26 06:06:05 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-08-26 06:06:05 +0000
commitaf76e063adb93dcf845ffd2c1d2fd5f135dfbe97 (patch)
tree9b893f809fe2db4ebd0d9af6adfb84233007c860 /sbin
parent6143013f92c3d077686e7e1006f8cd9f7605043f (diff)
Use i2s instead of hard coding the imsg type. Suggested by tb.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhcpleased/engine.c7
-rw-r--r--sbin/dhcpleased/frontend.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/sbin/dhcpleased/engine.c b/sbin/dhcpleased/engine.c
index 265d52feb13..f7c433895bc 100644
--- a/sbin/dhcpleased/engine.c
+++ b/sbin/dhcpleased/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.48 2024/08/26 06:05:05 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.49 2024/08/26 06:06:04 florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
@@ -552,8 +552,9 @@ engine_dispatch_main(int fd, short event, void *bula)
char ifnamebuf[IF_NAMESIZE];
if (nconf == NULL)
- fatalx("%s: IMSG_RECONF_END without "
- "IMSG_RECONF_CONF", __func__);
+ fatalx("%s: %s without IMSG_RECONF_CONF",
+ __func__, i2s(type));
+
ifaces = changed_ifaces(engine_conf, nconf);
merge_config(engine_conf, nconf);
nconf = NULL;
diff --git a/sbin/dhcpleased/frontend.c b/sbin/dhcpleased/frontend.c
index d0dae2d7a74..399345c99f3 100644
--- a/sbin/dhcpleased/frontend.c
+++ b/sbin/dhcpleased/frontend.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frontend.c,v 1.37 2024/08/26 06:04:24 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.38 2024/08/26 06:06:04 florian Exp $ */
/*
* Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
@@ -426,8 +426,8 @@ frontend_dispatch_main(int fd, short event, void *bula)
char ifnamebuf[IF_NAMESIZE], *if_name;
if (nconf == NULL)
- fatalx("%s: IMSG_RECONF_END without "
- "IMSG_RECONF_CONF", __func__);
+ fatalx("%s: %s without IMSG_RECONF_CONF",
+ __func__, i2s(type));
ifaces = changed_ifaces(frontend_conf, nconf);
merge_config(frontend_conf, nconf);