more "const" fixes

This commit is contained in:
goldsimon
2015-04-23 09:59:15 +02:00
parent 89f0e45b50
commit f01dc8cc34
5 changed files with 22 additions and 22 deletions

View File

@@ -3911,7 +3911,7 @@ udpentry_get_value(struct obj_def *od, u16_t len, void *value)
LWIP_UNUSED_ARG(len);
snmp_oidtoip(&od->id_inst_ptr[1], ip_2_ip4(&ip));
IP_SET_TYPE(&ip, IPADDR_TYPE_V4);
IP_SET_TYPE_VAL(ip, IPADDR_TYPE_V4);
LWIP_ASSERT("invalid port", (od->id_inst_ptr[5] >= 0) && (od->id_inst_ptr[5] <= 0xffff));
port = (u16_t)od->id_inst_ptr[5];