mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix boolean return type value
This commit is contained in:
parent
d55ec5effd
commit
58833df4b7
1 changed files with 1 additions and 1 deletions
|
|
@ -850,7 +850,7 @@ static int get_EthernetLink_Enable(char *refparam, struct dmctx *ctx, void *data
|
|||
dmuci_get_value_by_section_string((struct uci_section *)data, "section_name", &int_name);
|
||||
s = get_origin_section_from_config("network", "interface", int_name);
|
||||
dmuci_get_value_by_section_string(s, "disabled", value);
|
||||
*value = (strcmp(*value, "1") == 0) ? "False" : "True";
|
||||
*value = (strcmp(*value, "1") == 0) ? "0" : "1";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue