summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-07-19 06:57:28 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-07-19 06:57:28 +0000
commit5de4cd806239b2e2f789f45b58aa39d044639dad (patch)
tree3c4aaf15a12c6d64961946beabf8c8da20096cec /usr.sbin
parent9a258355a89f8fb070e09afcd1f5ab967608d59e (diff)
Match change to fatal()'s prototype in bgpd
ok benno@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 0a5364ae8c0..fa19ea875b4 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.179 2015/07/18 16:12:03 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.180 2015/07/19 06:57:27 guenther Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -1917,9 +1917,13 @@ log_warn(const char *emsg, ...)
}
void
-fatal(const char *emsg)
+fatal(const char *emsg, ...)
{
- err(1, "%s", emsg);
+ va_list ap;
+
+ va_start(ap, emsg);
+ verr(1, emsg, ap);
+ va_end(ap);
}
void