| 762 | } |
| 763 | |
| 764 | static struct command_result *param_u64_nonzero(struct command *cmd, |
| 765 | const char *name, |
| 766 | const char *buffer, |
| 767 | const jsmntok_t *tok, |
| 768 | u64 **val) |
| 769 | { |
| 770 | struct command_result *res = param_u64(cmd, name, buffer, tok, val); |
| 771 | if (res == NULL && *val == 0) |
| 772 | res = command_fail_badparam(cmd, name, buffer, tok, |
| 773 | "Must be non-zero"); |
| 774 | return res; |
| 775 | } |
| 776 | |
| 777 | static struct command_result *json_autoclean_once(struct command *cmd, |
| 778 | const char *buffer, |
nothing calls this directly
no test coverage detected