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))
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) {
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))
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))
void ubus_apply_network(void)
{
struct blob_attr *c;
- int rem;
+ unsigned rem;
if (!dump)
return;
const char* ubus_get_ifname(const char *name)
{
struct blob_attr *c;
- int rem;
+ unsigned rem;
if (!dump)
return NULL;
bool ubus_has_prefix(const char *name, const char *ifname)
{
struct blob_attr *c, *cur;
- int rem;
+ unsigned rem;
if (!dump)
return NULL;