| 989 | } |
| 990 | |
| 991 | static struct route_info **unpack_routes(const tal_t *ctx, |
| 992 | const char *buffer, |
| 993 | const jsmntok_t *routestok) |
| 994 | { |
| 995 | struct route_info **routes; |
| 996 | const jsmntok_t *t; |
| 997 | size_t i; |
| 998 | |
| 999 | if (!routestok) |
| 1000 | return NULL; |
| 1001 | |
| 1002 | routes = tal_arr(ctx, struct route_info *, routestok->size); |
| 1003 | json_for_each_arr(i, t, routestok) |
| 1004 | routes[i] = unpack_route(routes, buffer, t); |
| 1005 | |
| 1006 | return routes; |
| 1007 | } |
| 1008 | #endif /* DEVELOPER */ |
| 1009 | |
| 1010 | static struct command_result *param_positive_msat_or_any(struct command *cmd, |
no test coverage detected