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