| 1946 | } |
| 1947 | |
| 1948 | static struct command_result * |
| 1949 | param_positive_number(struct command *cmd, |
| 1950 | const char *name, |
| 1951 | const char *buffer, |
| 1952 | const jsmntok_t *tok, |
| 1953 | unsigned int **num) |
| 1954 | { |
| 1955 | struct command_result *res = param_number(cmd, name, buffer, tok, num); |
| 1956 | if (res) |
| 1957 | return res; |
| 1958 | if (**num == 0) |
| 1959 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1960 | "should be a positive integer"); |
| 1961 | return NULL; |
| 1962 | } |
| 1963 | |
| 1964 | static struct command_result *param_utxos_str(struct command *cmd, const char *name, |
| 1965 | const char * buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected