From: krw Date: Sun, 28 Jan 2018 11:29:30 +0000 (+0000) Subject: A few fatal() -> fatalx() where errno is not X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b0ed8fbaf45d1946d2550060ffef9a2c7a0e70af;p=openbsd A few fatal() -> fatalx() where errno is not relevant. --- diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 926fa4fdcfd..f912b65e883 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.545 2018/01/25 15:43:51 krw Exp $ */ +/* $OpenBSD: dhclient.c,v 1.546 2018/01/28 11:29:30 krw Exp $ */ /* * Copyright 2004 Henning Brauer @@ -342,7 +342,7 @@ routehandler(struct interface_info *ifi, int routefd) ifi->flags |= IFI_IN_CHARGE; goto done; } else if ((ifi->flags & IFI_IN_CHARGE) != 0) - fatal("yielding responsibility"); + fatalx("yielding responsibility"); } break; case RTM_DESYNC: @@ -353,7 +353,7 @@ routehandler(struct interface_info *ifi, int routefd) if (ifm->ifm_index != ifi->index) break; if ((rtm->rtm_flags & RTF_UP) == 0) - fatal("down"); + fatalx("down"); if ((ifi->flags & IFI_VALID_LLADDR) != 0) { memcpy(&hw, &ifi->hw_address, sizeof(hw)); @@ -390,7 +390,7 @@ routehandler(struct interface_info *ifi, int routefd) ifan = (struct if_announcemsghdr *)rtm; if (ifan->ifan_what == IFAN_DEPARTURE && ifan->ifan_index == ifi->index) - fatal("departed"); + fatalx("departed"); break; case RTM_NEWADDR: case RTM_DELADDR: