mirror of https://gerrit.osmocom.org/libosmocore
ctrl: Provide a reply in case the range check failed
This commit is contained in:
parent
da5eded5ad
commit
e9f7be16ac
|
@ -110,6 +110,7 @@ static int verify_##cmdname(struct ctrl_cmd *cmd, const char *value, void *_data
|
|||
if ((tmp >= min)&&(tmp <= max)) { \
|
||||
return 0; \
|
||||
} \
|
||||
cmd->reply = "Input not within the range"; \
|
||||
return -1; \
|
||||
} \
|
||||
static struct ctrl_cmd_element cmd_##cmdname = { \
|
||||
|
|
Loading…
Reference in New Issue