diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-20 23:20:02 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-20 23:20:02 -0400 |
| commit | 8a2d6083d6ca49f23668bfb4db83051ee03492d3 (patch) | |
| tree | 254cbcaf64301bb80bc3801fd3b042ce18fbb368 /lib/json.c | |
| parent | f68cec764abf50b35945b907a2e005bc50c50831 (diff) | |
lib: Fixup json code to use struct cmd_token
Diffstat (limited to 'lib/json.c')
| -rw-r--r-- | lib/json.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/json.c b/lib/json.c index 58f0e995f2..d06bacece4 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; |
