mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-12 10:33:37 +08:00
make netif_ip4_* get accessors return const pointers
This commit is contained in:
committed by
goldsimon
parent
e588dfdbce
commit
e00e4a6c13
@@ -145,7 +145,7 @@ snmp_oidtoip(s32_t *ident, ip4_addr_t *ip)
|
||||
* @param ident points to s32_t ident[4] output
|
||||
*/
|
||||
void
|
||||
snmp_iptooid(ip4_addr_t *ip, s32_t *ident)
|
||||
snmp_iptooid(const ip4_addr_t *ip, s32_t *ident)
|
||||
{
|
||||
ident[0] = ip4_addr1(ip);
|
||||
ident[1] = ip4_addr2(ip);
|
||||
|
||||
@@ -231,7 +231,7 @@ snmp_send_trap(s8_t generic_trap, const struct snmp_obj_id *eoid, s32_t specific
|
||||
#if LWIP_IPV4 && LWIP_IPV6
|
||||
ip_addr_t dst_ip_storage;
|
||||
#endif /* LWIP_IPV4 && LWIP_IPV6 */
|
||||
ip_addr_t* dst_ip;
|
||||
const ip_addr_t* dst_ip;
|
||||
struct pbuf *p;
|
||||
u16_t i,tot_len;
|
||||
err_t err = ERR_OK;
|
||||
|
||||
Reference in New Issue
Block a user