summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--interface-ip.c4
-rw-r--r--interface.c2
-rw-r--r--proto-shell.c4
-rw-r--r--ubus.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 6900cd7..d4f428d 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -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));
diff --git a/interface.c b/interface.c
index e0652cd..028dc6c 100644
--- a/interface.c
+++ b/interface.c
@@ -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));
diff --git a/proto-shell.c b/proto-shell.c
index 07ec21a..2662216 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -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);
diff --git a/ubus.c b/ubus.c
index e7cbfb9..150d818 100644
--- a/ubus.c
+++ b/ubus.c
@@ -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);