Const and typecast bugfix

This commit is contained in:
adamdunkels 2010-09-14 07:18:14 +00:00
parent 66afde05f4
commit 2be8454a15

View file

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: shell-rime.c,v 1.24 2010/09/14 06:40:17 adamdunkels Exp $ * $Id: shell-rime.c,v 1.25 2010/09/14 07:18:14 adamdunkels Exp $
*/ */
/** /**
@ -252,11 +252,11 @@ PROCESS_THREAD(shell_send_process, ev, data)
int len; int len;
struct collect_msg *msg; struct collect_msg *msg;
static int num_rexmits; static int num_rexmits;
char *next; const char *next;
PROCESS_BEGIN(); PROCESS_BEGIN();
num_rexmits = (int)shell_strtolong((char *)data, &next); num_rexmits = shell_strtolong((char *)data, &next);
if(next == data) { if(next == data) {
/* If no argument was given, we send packets with a default number /* If no argument was given, we send packets with a default number