osmoload.c: Cast to uint8_t from char* to fix a compiler warning
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 2 Oct 2010 18:29:58 +0000 (02:29 +0800)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 2 Oct 2010 18:29:58 +0000 (02:29 +0800)
src/host/osmocon/osmoload.c

index 7ed7563..b075463 100644 (file)
@@ -665,7 +665,7 @@ loader_do_memload() {
 
        uint8_t reqbytes = (rembytes < MEM_MSG_MAX) ? rembytes : MEM_MSG_MAX;
 
-       osmoload.memcrc = crc16(0, osmoload.binbuf + osmoload.memoff, reqbytes);
+       osmoload.memcrc = crc16(0, (uint8_t *) osmoload.binbuf + osmoload.memoff, reqbytes);
        osmoload.memreq = reqbytes;
 
        struct msgb *msg = msgb_alloc(MSGB_MAX, "loader");
@@ -705,7 +705,7 @@ loader_do_fprogram() {
 
        uint8_t reqbytes = (rembytes < MEM_MSG_MAX) ? rembytes : MEM_MSG_MAX;
 
-       osmoload.memcrc = crc16(0, osmoload.binbuf + osmoload.memoff, reqbytes);
+       osmoload.memcrc = crc16(0, (uint8_t *) osmoload.binbuf + osmoload.memoff, reqbytes);
        osmoload.memreq = reqbytes;
 
        struct msgb *msg = msgb_alloc(MSGB_MAX, "loader");