| 517 | } |
| 518 | |
| 519 | static struct command_result *param_u64_nonzero(struct command *cmd, |
| 520 | const char *name, |
| 521 | const char *buffer, |
| 522 | const jsmntok_t *tok, |
| 523 | u64 **val) |
| 524 | { |
| 525 | struct command_result *res = param_u64(cmd, name, buffer, tok, val); |
| 526 | if (res == NULL && *val == 0) |
| 527 | res = command_fail_badparam(cmd, name, buffer, tok, |
| 528 | "Must be non-zero"); |
| 529 | return res; |
| 530 | } |
| 531 | |
| 532 | static struct command_result *json_autoclean_once(struct command *cmd, |
| 533 | const char *buffer, |
nothing calls this directly
no test coverage detected