| 550 | } |
| 551 | |
| 552 | struct command_result *param_u16(struct command *cmd, const char *name, |
| 553 | const char *buffer, const jsmntok_t *tok, |
| 554 | uint16_t **num) |
| 555 | { |
| 556 | *num = tal(cmd, uint16_t); |
| 557 | if (json_to_u16(buffer, tok, *num)) |
| 558 | return NULL; |
| 559 | |
| 560 | return command_fail_badparam(cmd, name, buffer, tok, |
| 561 | "should be an unsigned 16 bit integer"); |
| 562 | } |
| 563 | |
| 564 | struct command_result *param_u32(struct command *cmd, const char *name, |
| 565 | const char *buffer, const jsmntok_t *tok, |
nothing calls this directly
no test coverage detected