| 1637 | } |
| 1638 | |
| 1639 | char *u32_option(struct command *cmd, const char *arg, bool check_only, u32 *i) |
| 1640 | { |
| 1641 | u64 n; |
| 1642 | char *problem = u64_option(cmd, arg, false, &n); |
| 1643 | |
| 1644 | if (problem) |
| 1645 | return problem; |
| 1646 | |
| 1647 | if ((u32)n != n) |
| 1648 | return tal_fmt(tmpctx, "'%s' is too large (overflow)", arg); |
| 1649 | |
| 1650 | if (!check_only) |
| 1651 | *i = n; |
| 1652 | return NULL; |
| 1653 | } |
| 1654 | |
| 1655 | char *u16_option(struct command *cmd, const char *arg, bool check_only, u16 *i) |
| 1656 | { |
nothing calls this directly
no test coverage detected