diff options
| author | 2007-03-05 15:02:05 +0000 | |
|---|---|---|
| committer | 2007-03-05 15:02:05 +0000 | |
| commit | edfe18e1012a4437caeab57cc1bb11ae22b7fafb (patch) | |
| tree | 8c5a3d67ece62ab42159fb88cf67f837f0b79a79 /usr.sbin/bgpctl/irr_output.c | |
| parent | nuke annoying debug log (diff) | |
| download | wireguard-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.c | 5 |
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) |
