summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/irr_output.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-03-05 15:02:05 +0000
committerhenning <henning@openbsd.org>2007-03-05 15:02:05 +0000
commitedfe18e1012a4437caeab57cc1bb11ae22b7fafb (patch)
tree8c5a3d67ece62ab42159fb88cf67f837f0b79a79 /usr.sbin/bgpctl/irr_output.c
parentnuke annoying debug log (diff)
downloadwireguard-openbsd-edfe18e1012a4437caeab57cc1bb11ae22b7fafb.tar.xz
wireguard-openbsd-edfe18e1012a4437caeab57cc1bb11ae22b7fafb.zip
unused vars, lint
Diffstat (limited to 'usr.sbin/bgpctl/irr_output.c')
-rw-r--r--usr.sbin/bgpctl/irr_output.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/irr_output.c b/usr.sbin/bgpctl/irr_output.c
index 8e32c4810b6..301eccc2a8c 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.11 2007/03/05 11:07:47 henning Exp $ */
+/* $OpenBSD: irr_output.c,v 1.12 2007/03/05 15:02:05 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -154,14 +154,13 @@ char *
action_torule(char *s)
{
int cnt = 0;
- char *key, *val, *pre, *buf, *tmp;
+ char *key, *val, *pre, *tmp;
static char abuf[8192];
char ebuf[2048];
if ((tmp = strdup(s)) == NULL)
err(1, "foo");
abuf[0] = '\0';
- buf = abuf;
while ((val = strsep(&tmp, ";")) != NULL && *val) {
key = strsep(&val, "=");
if (key == NULL || val == NULL)