summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-14 22:44:13 +0200
committerSteven Barth <steven@midlink.org>2013-10-14 22:44:13 +0200
commit9dc77ae1b6c2379a2cd7ba631fcefdd243fcda85 (patch)
tree7c3b68945c8f8777db8faa07355867bb6c73c826 /src/config.c
parent22de5ea8c4d776b69ae1d795cab784855f1581fd (diff)
Fix argument parsing
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 5bb1a0e..07dad1f 100644
--- a/src/config.c
+++ b/src/config.c
@@ -331,7 +331,7 @@ int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite
if ((c = tb[IFACE_ATTR_UPSTREAM])) {
struct blob_attr *cur;
- int rem;
+ unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
@@ -362,7 +362,7 @@ int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite
if ((c = tb[IFACE_ATTR_DNS])) {
struct blob_attr *cur;
- int rem;
+ unsigned rem;
iface->always_rewrite_dns = true;
blobmsg_for_each_attr(cur, c, rem) {
@@ -387,7 +387,7 @@ int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite
if ((c = tb[IFACE_ATTR_DOMAIN])) {
struct blob_attr *cur;
- int rem;
+ unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))
@@ -437,7 +437,7 @@ int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite
if ((c = tb[IFACE_ATTR_NDPROXY_STATIC])) {
struct blob_attr *cur;
- int rem;
+ unsigned rem;
blobmsg_for_each_attr(cur, c, rem) {
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING || !blobmsg_check_attr(cur, NULL))