mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +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)
|
||||
{
|
||||
/* snmpEnableAuthenTraps */
|
||||
/* @todo @fixme: which kind of pointer is 'value'? s32_t or u8_t??? */
|
||||
u8_t *ptr = (u8_t*)value;
|
||||
*snmpenableauthentraps_ptr = *ptr;
|
||||
s32_t *ptr = (s32_t*)value;
|
||||
*snmpenableauthentraps_ptr = (u8_t)*ptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user