| 1627 | } |
| 1628 | |
| 1629 | char *u32_option(struct command *cmd, const char *arg, bool check_only, u32 *i) |
| 1630 | { |
| 1631 | u64 n; |
| 1632 | char *problem = u64_option(cmd, arg, false, &n); |
| 1633 | |
| 1634 | if (problem) |
| 1635 | return problem; |
| 1636 | |
| 1637 | if ((u32)n != n) |
| 1638 | return tal_fmt(tmpctx, "'%s' is too large (overflow)", arg); |
| 1639 | |
| 1640 | if (!check_only) |
| 1641 | *i = n; |
| 1642 | return NULL; |
| 1643 | } |
| 1644 | |
| 1645 | char *u16_option(struct command *cmd, const char *arg, bool check_only, u16 *i) |
| 1646 | { |
nothing calls this directly
no test coverage detected