diff options
author | 2019-03-11 16:03:20 +0000 | |
---|---|---|
committer | 2019-03-11 16:03:20 +0000 | |
commit | 51a619925d8fd673db207ec5d25db64316d2c57c (patch) | |
tree | 813f528919087749933f860e1b55d949cc0aff41 /usr.sbin/rad/engine.c | |
parent | Change fatal() to fatalx() where errno is not set. (diff) | |
download | wireguard-openbsd-51a619925d8fd673db207ec5d25db64316d2c57c.tar.xz wireguard-openbsd-51a619925d8fd673db207ec5d25db64316d2c57c.zip |
Change fatal() to fatalx() where errno is not set.
tweak and OK florian@
Diffstat (limited to 'usr.sbin/rad/engine.c')
-rw-r--r-- | usr.sbin/rad/engine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rad/engine.c b/usr.sbin/rad/engine.c index 73284877cee..9553f1e8d73 100644 --- a/usr.sbin/rad/engine.c +++ b/usr.sbin/rad/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.11 2019/03/02 03:40:45 pamela Exp $ */ +/* $OpenBSD: engine.c,v 1.12 2019/03/11 16:03:20 pamela Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -212,21 +212,21 @@ engine_dispatch_frontend(int fd, short event, void *bula) switch (imsg.hdr.type) { case IMSG_RA_RS: if (IMSG_DATA_SIZE(imsg) != sizeof(ra_rs)) - fatal("%s: IMSG_RA_RS wrong length: %lu", + fatalx("%s: IMSG_RA_RS wrong length: %lu", __func__, IMSG_DATA_SIZE(imsg)); memcpy(&ra_rs, imsg.data, sizeof(ra_rs)); parse_ra_rs(&ra_rs); break; case IMSG_UPDATE_IF: if (IMSG_DATA_SIZE(imsg) != sizeof(if_index)) - fatal("%s: IMSG_UPDATE_IF wrong length: %lu", + fatalx("%s: IMSG_UPDATE_IF wrong length: %lu", __func__, IMSG_DATA_SIZE(imsg)); memcpy(&if_index, imsg.data, sizeof(if_index)); update_iface(if_index); break; case IMSG_REMOVE_IF: if (IMSG_DATA_SIZE(imsg) != sizeof(if_index)) - fatal("%s: IMSG_REMOVE_IF wrong length: %lu", + fatalx("%s: IMSG_REMOVE_IF wrong length: %lu", __func__, IMSG_DATA_SIZE(imsg)); memcpy(&if_index, imsg.data, sizeof(if_index)); remove_iface(if_index); |