t = blobmsg_open_table(&status, NULL);
- if (res.set.pdp_type && res.data.pdp_type < ARRAY_SIZE(pdptypes))
+ if (res.set.pdp_type && (int) res.data.pdp_type < ARRAY_SIZE(pdptypes))
blobmsg_add_string(&status, "pdp-type", pdptypes[res.data.pdp_type]);
if (res.set.ip_family) {