summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorHans Dedecker <hans.dedecker@technicolor.com>2015-12-15 15:32:33 +0100
committerHans Dedecker <hans.dedecker@technicolor.com>2015-12-15 15:40:34 +0100
commit25f7c94b65dcd501c8f12e7515e3e33332ce3c9e (patch)
tree21f3d9b303a13b6c358747799dbe29d5750381ae /src/config.c
parentc5cb11650a1f7ff321b4ac190c8be7f533cf9636 (diff)
config: blobmsg_check_attr expects bool type as last argument
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.c b/src/config.c
index 74ab3dd..8f2c6bf 100644
--- a/src/config.c
+++ b/src/config.c
@@ -370,7 +370,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
- if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
+ if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, false))
continue;
iface->upstream = realloc(iface->upstream,
@@ -417,7 +417,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
- if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
+ if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, false))
continue;
struct in_addr addr4;
@@ -440,7 +440,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
iface->always_rewrite_dns = true;
blobmsg_for_each_attr(cur, c, rem) {
- if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
+ if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, false))
continue;
struct in_addr addr4;
@@ -470,7 +470,7 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
- if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
+ if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, false))
continue;
uint8_t buf[256];