Fix compiler warnings
This commit is contained in:
parent
5e1ce413af
commit
c0de05f9a8
3 changed files with 6 additions and 6 deletions
|
@ -133,7 +133,7 @@ PROCESS_THREAD(shell_sendcmd_process, ev, data)
|
|||
|
||||
/* Terminate the string with a NUL character. */
|
||||
msg->sendcmd[len] = 0;
|
||||
msg->crc = crc16_data(msg->sendcmd, len, 0);
|
||||
msg->crc = crc16_data((unsigned char *)msg->sendcmd, len, 0);
|
||||
/* printf("sendcmd sending '%s'\n", msg->sendcmd);*/
|
||||
unicast_send(&uc, &addr);
|
||||
|
||||
|
@ -160,7 +160,7 @@ recv_uc(struct unicast_conn *c, const linkaddr_t *from)
|
|||
msg->sendcmd[len] = 0;
|
||||
memcpy(&crc, &msg->crc, sizeof(crc));
|
||||
|
||||
if(crc == crc16_data(msg->sendcmd, len, 0)) {
|
||||
if(crc == crc16_data((unsigned char *)msg->sendcmd, len, 0)) {
|
||||
/* Start the server process with the incoming command. */
|
||||
process_start(&shell_sendcmd_server_process, (void *)msg->sendcmd);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue