mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-03 21:32:08 +00:00
fixed pointer type of value passed for snmpenableauthentraps (broken in 2010)
This commit is contained in:
parent
aea87a9a2f
commit
c8cd67c989
@ -4158,9 +4158,8 @@ snmp_set_value(struct obj_def *od, u16_t len, void *value)
|
|||||||
if (id == 30)
|
if (id == 30)
|
||||||
{
|
{
|
||||||
/* snmpEnableAuthenTraps */
|
/* snmpEnableAuthenTraps */
|
||||||
/* @todo @fixme: which kind of pointer is 'value'? s32_t or u8_t??? */
|
s32_t *ptr = (s32_t*)value;
|
||||||
u8_t *ptr = (u8_t*)value;
|
*snmpenableauthentraps_ptr = (u8_t)*ptr;
|
||||||
*snmpenableauthentraps_ptr = *ptr;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user