summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-03-24 10:56:23 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-03-24 10:56:23 +0000
commitc5ee8db66e93d5b5f9c0437e21ffeb0bf17ad246 (patch)
tree6bc506948919ae0264bc25ee6a017af29c5dccdd /usr.sbin
parentd0c0acef4bde604cace8be8bdc103de6effc8340 (diff)
fatal vs fatalx, Alexander von Gernler
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/ntpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 2498d06279f..981d1b86964 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.32 2005/03/13 10:06:27 dtucker Exp $ */
+/* $OpenBSD: ntpd.c,v 1.33 2005/03/24 10:56:22 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -264,13 +264,13 @@ dispatch_imsg(struct ntpd_conf *conf)
switch (imsg.hdr.type) {
case IMSG_ADJTIME:
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
- fatal("invalid IMSG_ADJTIME received");
+ fatalx("invalid IMSG_ADJTIME received");
memcpy(&d, imsg.data, sizeof(d));
ntpd_adjtime(d);
break;
case IMSG_SETTIME:
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))
- fatal("invalid IMSG_SETTIME received");
+ fatalx("invalid IMSG_SETTIME received");
if (!conf->settime)
break;
memcpy(&d, imsg.data, sizeof(d));
@@ -285,7 +285,7 @@ dispatch_imsg(struct ntpd_conf *conf)
case IMSG_HOST_DNS:
name = imsg.data;
if (imsg.hdr.len != strlen(name) + 1 + IMSG_HEADER_SIZE)
- fatal("invalid IMSG_HOST_DNS received");
+ fatalx("invalid IMSG_HOST_DNS received");
if ((cnt = host_dns(name, &hn)) > 0) {
buf = imsg_create(ibuf, IMSG_HOST_DNS,
imsg.hdr.peerid, 0,