summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-11-18 16:47:04 +0000
committermmcc <mmcc@openbsd.org>2015-11-18 16:47:04 +0000
commit8c4d0a8defb5579e0eb8e5fe21ddf963d6eb33e6 (patch)
treee26dd84bb6c27942247960e6154c25092ab90443
parentAdd icdb, the internal c database. A simpler replacement for the old (diff)
downloadwireguard-openbsd-8c4d0a8defb5579e0eb8e5fe21ddf963d6eb33e6.tar.xz
wireguard-openbsd-8c4d0a8defb5579e0eb8e5fe21ddf963d6eb33e6.zip
err(1, "foo") -> err(1, NULL) for strdup()
-rw-r--r--usr.sbin/bgpctl/irr_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c
index 81ce4b3ae4a..df2f7ab7135 100644
--- a/usr.sbin/bgpctl/irr_output.c
+++ b/usr.sbin/bgpctl/irr_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_output.c,v 1.19 2015/10/05 14:18:33 deraadt Exp $ */
+/* $OpenBSD: irr_output.c,v 1.20 2015/11/18 16:47:04 mmcc Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -159,7 +159,7 @@ action_torule(char *s)
char ebuf[2048];
if ((tmp = strdup(s)) == NULL)
- err(1, "foo");
+ err(1, NULL);
abuf[0] = '\0';
while ((val = strsep(&tmp, ";")) != NULL && *val) {
key = strsep(&val, "=");