mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-01-28 01:47:18 +01:00
bbf: Update the validate function of boolean parameters
This commit is contained in:
parent
889c15feeb
commit
c7ffc5afd4
1 changed files with 1 additions and 3 deletions
|
|
@ -1076,9 +1076,7 @@ static char *check_value_by_type(char *value, int type)
|
|||
}
|
||||
break;
|
||||
case DMT_BOOL:
|
||||
if (dm_validate_boolean(buf))
|
||||
return "0";
|
||||
break;
|
||||
return dmuci_string_to_boolean(buf) ? "1" : "0";
|
||||
case DMT_HEXBIN:
|
||||
while (buf[i] != 0) {
|
||||
if (isxdigit(buf[i]) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue