summaryrefslogtreecommitdiffstats
path: root/lib/smux.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 22:17:29 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-23 22:17:29 +0200
commitc349116d7ca8acd51b7fe596a269dc5839af0abd (patch)
treeec4116bc51cb094e864236402717d989460ce0f6 /lib/smux.c
parentMerge branch 'vtysh-grammar' of ssh://stash.cumulusnetworks.com:7999/quag/qua... (diff)
downloadfrr-c349116d7ca8acd51b7fe596a269dc5839af0abd.tar.xz
frr-c349116d7ca8acd51b7fe596a269dc5839af0abd.zip
lib: add 'int idx_foo' argv index variables
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'lib/smux.c')
-rw-r--r--lib/smux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/smux.c b/lib/smux.c
index 572722724..82bf64f1c 100644
--- a/lib/smux.c
+++ b/lib/smux.c
@@ -1370,7 +1370,8 @@ DEFUN (smux_peer,
"SNMP MUX peer settings\n"
"Object ID used in SMUX peering\n")
{
- if (smux_peer_oid (vty, argv[2]->arg, NULL) == 0)
+ int idx_oid = 2;
+ if (smux_peer_oid (vty, argv[idx_oid]->arg, NULL) == 0)
{
smux_start();
return CMD_SUCCESS;
@@ -1387,7 +1388,8 @@ DEFUN (smux_peer_password,
"SMUX peering object ID\n"
"SMUX peering password\n")
{
- if (smux_peer_oid (vty, argv[2]->arg, argv[3]->rg) == 0)
+ int idx_oid = 2;
+ if (smux_peer_oid (vty, argv[idx_oid]->arg, argv[3]->rg) == 0)
{
smux_start();
return CMD_SUCCESS;