summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-01-03 22:21:00 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-01-03 22:21:00 +0000
commit9fcc5e977ed11e698f1f8250a5422b458968bb6f (patch)
tree2becb866a374b82636a8b80b70209da54f0c68f2 /usr.sbin/bgpctl/bgpctl.c
parent4408d355bf203228e260018e43cfbc145f9ea1d3 (diff)
Cope with new util.c
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index f423890ad1c..c79a0d8fe78 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.94 2006/01/03 22:05:13 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.95 2006/01/03 22:20:59 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -72,6 +72,9 @@ int show_rib_summary_msg(struct imsg *);
void send_filterset(struct imsgbuf *, struct filter_set_head *);
static const char *get_errstr(u_int8_t, u_int8_t);
int show_result(struct imsg *);
+void log_warnx(const char *, ...);
+void log_warn(const char *, ...);
+void fatal(const char *);
struct imsgbuf *ibuf;
@@ -1049,3 +1052,30 @@ show_result(struct imsg *imsg)
return (1);
}
+
+/* following functions are necessary for imsg framework */
+void
+log_warnx(const char *emsg, ...)
+{
+ va_list ap;
+
+ va_start(ap, emsg);
+ vwarnx(emsg, ap);
+ va_end(ap);
+}
+
+void
+log_warn(const char *emsg, ...)
+{
+ va_list ap;
+
+ va_start(ap, emsg);
+ vwarn(emsg, ap);
+ va_end(ap);
+}
+
+void
+fatal(const char *emsg)
+{
+ err(1, emsg);
+}