Browse Source

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

STABLE-2_1_x
goldsimon 11 years ago
parent
commit
c8cd67c989
  1. 5
      src/core/snmp/mib2.c

5
src/core/snmp/mib2.c

@ -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…
Cancel
Save