summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-03-05 15:02:06 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-03-05 15:02:06 +0000
commit55c33ff0cad68954e73ef8e31a5168a7193afb3d (patch)
treea7dc9754ec029ef52ec4d2f6728e09d15dade2f7 /usr.sbin/bgpctl
parentd7d5fa88d9bc29a3a041dd2e3991b988e6460d21 (diff)
unused vars, lint
Diffstat (limited to 'usr.sbin/bgpctl')
-rw-r--r--usr.sbin/bgpctl/irr_asset.c6
-rw-r--r--usr.sbin/bgpctl/irr_output.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/bgpctl/irr_asset.c b/usr.sbin/bgpctl/irr_asset.c
index e6bc21d1871..391d6709dd1 100644
--- a/usr.sbin/bgpctl/irr_asset.c
+++ b/usr.sbin/bgpctl/irr_asset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_asset.c,v 1.2 2007/03/03 15:26:46 henning Exp $ */
+/* $OpenBSD: irr_asset.c,v 1.3 2007/03/05 15:02:05 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -58,8 +58,6 @@ asset_get(char *name)
{
struct as_set *ass, *mas;
u_int i;
- int r;
-
/*
* the caching prevents the endless recursion.
@@ -89,7 +87,7 @@ asset_get(char *name)
} else if (!strncasecmp(name, "AS-", 3)) {
/* as-set */
curass = ass;
- if ((r = whois(name, QTYPE_ASSET)) == -1)
+ if (whois(name, QTYPE_ASSET) == -1)
errx(1, "whois error, asset_get %s", name);
curass = NULL;
} else
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)