fixed pointer type of value passed for snmpenableauthentraps (broken in 2010)

This commit is contained in:
goldsimon 2015-09-03 14:02:30 +02:00
parent aea87a9a2f
commit c8cd67c989

View File

@ -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;
} }
} }