Avoid compiler warning.

This commit is contained in:
oliverschmidt 2008-07-06 10:34:44 +00:00
parent c60e91bf59
commit 0d8e8136e9
1 changed files with 2 additions and 2 deletions

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-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) { if(next == NULL) {
strncpy(filename, data, sizeof(filename)); strncpy(filename, data, sizeof(filename));
} else { } else {
len = next - (char *)data; len = (int)(next - (char *)data);
if(len <= 0) { if(len <= 0) {
shell_output_str(&read_command, shell_output_str(&read_command,
"read: filename too short: ", data); "read: filename too short: ", data);