diff options
author | Thomas Jepp <tom@tomjepp.co.uk> | 2015-11-23 17:12:18 +0000 |
---|---|---|
committer | Thomas Jepp <tom@tomjepp.co.uk> | 2015-11-23 17:12:18 +0000 |
commit | ae41f9478892be200ecc45e2d831712136aac058 (patch) | |
tree | c7284934ddf657f72c1cc29fff877cbbb5657c79 /src/cli_shell_api.cpp | |
parent | 2fef9b9461cec9487f0df6648d8395b3475cb08e (diff) | |
download | vyatta-cfg-ae41f9478892be200ecc45e2d831712136aac058.tar.gz vyatta-cfg-ae41f9478892be200ecc45e2d831712136aac058.zip |
Build fixes for updated libraries on Jessie.
Diffstat (limited to 'src/cli_shell_api.cpp')
-rw-r--r-- | src/cli_shell_api.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cli_shell_api.cpp b/src/cli_shell_api.cpp index aa8eafd..8a38a63 100644 --- a/src/cli_shell_api.cpp +++ b/src/cli_shell_api.cpp @@ -686,7 +686,7 @@ static OpT ops[] = { OP(cfReturnValue, -1, NULL, 2, "Must specify config file and path", false), OP(cfReturnValues, -1, NULL, 2, "Must specify config file and path", false), - {NULL, -1, NULL, -1, NULL, NULL, false} + {NULL, -1, NULL, -1, NULL, false, NULL} }; #define OP_exact_args ops[op_idx].op_exact_args #define OP_min_args ops[op_idx].op_min_args @@ -716,6 +716,12 @@ struct option options[] = { int main(int argc, char **argv) { + fprintf(stderr, "DEBUG %s", argv[0]); + for (int i = 1; i < argc; i++) { + fprintf(stderr, " '%s'", argv[i]); // DEBUG + } + fprintf(stderr, "\n"); // DEBUG + // handle options first int c = 0; while ((c = getopt_long(argc, argv, "", options, NULL)) != -1) { |