| 219 | } |
| 220 | |
| 221 | static void finished_arg(int *argc, char **argv, size_t *idx, |
| 222 | bool remove_args) |
| 223 | { |
| 224 | if (!remove_args) { |
| 225 | (*idx)++; |
| 226 | return; |
| 227 | } |
| 228 | memmove(argv + *idx, argv + 1 + *idx, (*argc - *idx) * sizeof(char *)); |
| 229 | (*argc)--; |
| 230 | } |
| 231 | |
| 232 | /* Now all options are known, we can turn cmdline into configvars */ |
| 233 | static struct configvar **gather_cmdline_args(const tal_t *ctx, |
no outgoing calls
no test coverage detected