From 2be8454a151ff677843f388725dd490978aef3e2 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 14 Sep 2010 07:18:14 +0000 Subject: [PATCH] Const and typecast bugfix --- apps/shell/shell-rime.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/shell/shell-rime.c b/apps/shell/shell-rime.c index 0ef819fda..f8740e4a9 100644 --- a/apps/shell/shell-rime.c +++ b/apps/shell/shell-rime.c @@ -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