| 163 | } |
| 164 | |
| 165 | static struct command_result *param_recurrence_base(struct command *cmd, |
| 166 | const char *name, |
| 167 | const char *buffer, |
| 168 | const jsmntok_t *tok, |
| 169 | struct recurrence_base **base) |
| 170 | { |
| 171 | *base = tal(cmd, struct recurrence_base); |
| 172 | (*base)->proportional_amount = false; |
| 173 | if (!json_to_u64(buffer, tok, &(*base)->basetime)) |
| 174 | return command_fail_badparam(cmd, name, buffer, tok, |
| 175 | "not a valid basetime"); |
| 176 | return NULL; |
| 177 | } |
| 178 | |
| 179 | |
| 180 | /* -time+time */ |
nothing calls this directly
no test coverage detected