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.
*
* $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;
struct collect_msg *msg;
static int num_rexmits;
char *next;
const char *next;
PROCESS_BEGIN();
num_rexmits = (int)shell_strtolong((char *)data, &next);
num_rexmits = shell_strtolong((char *)data, &next);
if(next == data) {
/* If no argument was given, we send packets with a default number