From 0d8e8136e99177f22a2543309fd29167f53b1b8e Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 6 Jul 2008 10:34:44 +0000 Subject: [PATCH] Avoid compiler warning. --- apps/shell/shell-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/shell/shell-file.c b/apps/shell/shell-file.c index 56fda8d2f..86e509061 100644 --- a/apps/shell/shell-file.c +++ b/apps/shell/shell-file.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: shell-file.c,v 1.5 2008/07/03 21:13:54 adamdunkels Exp $ + * $Id: shell-file.c,v 1.6 2008/07/06 10:34:44 oliverschmidt Exp $ */ /** @@ -181,7 +181,7 @@ PROCESS_THREAD(shell_read_process, ev, data) if(next == NULL) { strncpy(filename, data, sizeof(filename)); } else { - len = next - (char *)data; + len = (int)(next - (char *)data); if(len <= 0) { shell_output_str(&read_command, "read: filename too short: ", data);