--- /home/jmomose/work/AGPON/lwip-HEAD/lwip/src/core/snmp/asn1_dec.c 2006-11-17 06:05:26.000000000 -0500 +++ asn1_dec.c 2007-04-25 15:07:46.897038600 -0400 @@ -333,7 +333,12 @@ { u16_t plen, base; u8_t *msg_ptr; +#if BYTE_ORDER == LITTLE_ENDIAN u8_t *lsb_ptr = (u8_t*)value; +#endif +#if BYTE_ORDER == BIG_ENDIAN + u8_t *lsb_ptr = (u8_t*)value + sizeof(s32_t) - 1; +#endif u8_t sign; plen = 0;