summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-07-06 18:39:30 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commitaf4d3437ce2b84dc7fb62c008aa27cb9229eced6 (patch)
treea53ada718fef0871b2883733ac1ccdbaf0bb0876 /vtysh
parentzebra: add missing include (diff)
downloadfrr-af4d3437ce2b84dc7fb62c008aa27cb9229eced6.tar.xz
frr-af4d3437ce2b84dc7fb62c008aa27cb9229eced6.zip
lib, vtysh: fixup style nits for error refs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index 63195806e..ef4d1a083 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -2354,9 +2354,10 @@ DEFUN (vtysh_show_error_code,
"Information on all errors\n"
JSON_STR)
{
+ char *fcmd = argv_concat(argv, argc, 0);
char cmd[256];
int rv;
- char *fcmd = argv_concat(argv, argc, 0);
+
snprintf(cmd, sizeof(cmd), "do %s", fcmd);
/* FIXME: Needs to determine which daemon to send to via code ranges */