Commit f1aa0f90 authored by Hans Dedecker's avatar Hans Dedecker

treewide: pass bool as second argument of blobmsg_check_attr

blobmsg_check_attr() takes as second argument a bool; fix it where needed
Signed-off-by: default avatarHans Dedecker <dedeckeh@gmail.com>
parent f6fb7000
......@@ -1358,7 +1358,7 @@ interface_add_dns_server_list(struct interface_ip_settings *ip, struct blob_attr
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
continue;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
continue;
interface_add_dns_server(ip, blobmsg_data(cur));
......@@ -1390,7 +1390,7 @@ interface_add_dns_search_list(struct interface_ip_settings *ip, struct blob_attr
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
continue;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
continue;
interface_add_dns_search_domain(ip, blobmsg_data(cur));
......
......@@ -497,7 +497,7 @@ interface_add_assignment_classes(struct interface *iface, struct blob_attr *list
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
continue;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
continue;
struct interface_assignment_class *c = malloc(sizeof(*c) + blobmsg_data_len(cur));
......
......@@ -606,7 +606,7 @@ fill_string_list(struct blob_attr *attr, char **argv, int max)
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
return false;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
return false;
argv[argc++] = blobmsg_data(cur);
......@@ -683,7 +683,7 @@ proto_shell_notify_error(struct proto_shell_state *state, struct blob_attr **tb)
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
goto error;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
goto error;
data[n_data++] = blobmsg_data(cur);
......
......@@ -243,7 +243,7 @@ netifd_handle_alias(struct ubus_context *ctx, struct ubus_object *obj,
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING)
goto error;
if (!blobmsg_check_attr(cur, NULL))
if (!blobmsg_check_attr(cur, false))
goto error;
alias_notify_device(blobmsg_data(cur), dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment