From: Petteri Aimonen Date: Thu, 5 Jul 2012 15:24:11 +0000 (+0300) Subject: Fix some typos in __BIG_ENDIAN__ code X-Git-Tag: 3.99.1~14^2~483 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=efef38cf7869f11750fba1dfb965e93b42d5d49e;p=apps%2Flow-level-can-service.git Fix some typos in __BIG_ENDIAN__ code --- diff --git a/pb_encode.c b/pb_encode.c index c6cccf2..faaeac9 100644 --- a/pb_encode.c +++ b/pb_encode.c @@ -235,7 +235,7 @@ bool checkreturn pb_encode_svarint(pb_ostream_t *stream, int64_t value) bool checkreturn pb_encode_fixed32(pb_ostream_t *stream, const void *value) { #ifdef __BIG_ENDIAN__ - uint8_t *bytes = value; + const uint8_t *bytes = value; uint8_t lebytes[4]; lebytes[0] = bytes[3]; lebytes[1] = bytes[2]; @@ -250,7 +250,7 @@ bool checkreturn pb_encode_fixed32(pb_ostream_t *stream, const void *value) bool checkreturn pb_encode_fixed64(pb_ostream_t *stream, const void *value) { #ifdef __BIG_ENDIAN__ - uint8_t *bytes[8] = value; + const uint8_t *bytes = value; uint8_t lebytes[8]; lebytes[0] = bytes[7]; lebytes[1] = bytes[6];