| 1995 | } |
| 1996 | |
| 1997 | static struct command_result * |
| 1998 | param_positive_number(struct command *cmd, |
| 1999 | const char *name, |
| 2000 | const char *buffer, |
| 2001 | const jsmntok_t *tok, |
| 2002 | unsigned int **num) |
| 2003 | { |
| 2004 | struct command_result *res = param_number(cmd, name, buffer, tok, num); |
| 2005 | if (res) |
| 2006 | return res; |
| 2007 | if (**num == 0) |
| 2008 | return command_fail_badparam(cmd, name, buffer, tok, |
| 2009 | "should be a positive integer"); |
| 2010 | return NULL; |
| 2011 | } |
| 2012 | |
| 2013 | static struct command_result *param_utxos_str(struct command *cmd, const char *name, |
| 2014 | const char * buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected