| 195 | } |
| 196 | |
| 197 | void wait_index_increase(struct lightningd *ld, |
| 198 | struct db *db, |
| 199 | enum wait_subsystem subsystem, |
| 200 | enum wait_index index, |
| 201 | u64 num, |
| 202 | ...) |
| 203 | { |
| 204 | va_list ap; |
| 205 | |
| 206 | if (num == 0) |
| 207 | return; |
| 208 | |
| 209 | va_start(ap, num); |
| 210 | wait_index_bump(ld, db, subsystem, index, num, ap); |
| 211 | va_end(ap); |
| 212 | } |
| 213 | |
| 214 | static struct command_result *param_subsystem(struct command *cmd, |
| 215 | const char *name, |
no test coverage detected