summaryrefslogtreecommitdiffstats
path: root/lib/json.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-21 05:20:02 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-21 05:20:02 +0200
commit8a2d6083d6ca49f23668bfb4db83051ee03492d3 (patch)
tree254cbcaf64301bb80bc3801fd3b042ce18fbb368 /lib/json.c
parentlib: Fixup more files (diff)
downloadfrr-8a2d6083d6ca49f23668bfb4db83051ee03492d3.tar.xz
frr-8a2d6083d6ca49f23668bfb4db83051ee03492d3.zip
lib: Fixup json code to use struct cmd_token
Diffstat (limited to 'lib/json.c')
-rw-r--r--lib/json.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/json.c b/lib/json.c
index 58f0e995f..d06bacece 100644
--- a/lib/json.c
+++ b/lib/json.c
@@ -21,6 +21,7 @@
#include <zebra.h>
+#include "command.h"
#include "lib/json.h"
/*
@@ -29,12 +30,12 @@
* what.
*/
int
-use_json (const int argc, const char *argv[])
+use_json (const int argc, const struct cmd_token *argv[])
{
if (argc == 0)
return 0;
- if (argv[argc-1] && strcmp(argv[argc-1], "json") == 0)
+ if (argv[argc-1]->arg && strcmp(argv[argc-1]->arg, "json") == 0)
return 1;
return 0;