Fixing the pointer cast for ntoh32p in cn-cbor
This line was incorrectly casting p to a long pointer rather than a 32
bit integer pointer.
Bug: 113512324
Test: it's unused code.
Change-Id: Ib296a2b20c7c13bd94b9c7f8b666c4d1213bbfcf
diff --git a/src/cn-cbor.c b/src/cn-cbor.c
index a7677ae..8fadf73 100644
--- a/src/cn-cbor.c
+++ b/src/cn-cbor.c
@@ -52,7 +52,7 @@
/* Fix these if you can't do non-aligned reads */
#define ntoh8p(p) (*(unsigned char*)(p))
#define ntoh16p(p) (ntohs(*(unsigned short*)(p)))
-#define ntoh32p(p) (ntohl(*(unsigned long*)(p)))
+#define ntoh32p(p) (ntohl(*(uint32_t*)(p)))
static uint64_t ntoh64p(unsigned char *p) {
uint64_t ret = ntoh32p(p);
ret <<= 32;