| 1228 | } |
| 1229 | |
| 1230 | static struct command_result *param_s8_hundred(struct command *cmd, |
| 1231 | const char *name, |
| 1232 | const char *buffer, |
| 1233 | const jsmntok_t *tok, |
| 1234 | s8 **v) |
| 1235 | { |
| 1236 | s64 s64val; |
| 1237 | |
| 1238 | if (!json_to_s64(buffer, tok, &s64val) |
| 1239 | || s64val < -100 |
| 1240 | || s64val > 100) |
| 1241 | return command_fail_badparam(cmd, name, buffer, tok, |
| 1242 | "should be a number between -100 and 100"); |
| 1243 | *v = tal(cmd, s8); |
| 1244 | **v = s64val; |
| 1245 | return NULL; |
| 1246 | } |
| 1247 | |
| 1248 | static struct command_result *json_askrene_bias_channel(struct command *cmd, |
| 1249 | const char *buffer, |
nothing calls this directly
no test coverage detected