diff options
author | 2015-07-19 06:57:27 +0000 | |
---|---|---|
committer | 2015-07-19 06:57:27 +0000 | |
commit | cb1830ff860b4656048e397a4b1f336e93c97ae8 (patch) | |
tree | a961582f705a2d083caad1102250b5d1f7abe6dd | |
parent | sync (diff) | |
download | wireguard-openbsd-cb1830ff860b4656048e397a4b1f336e93c97ae8.tar.xz wireguard-openbsd-cb1830ff860b4656048e397a4b1f336e93c97ae8.zip |
Match change to fatal()'s prototype in bgpd
ok benno@
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 10 |
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 |