mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-10 14:54:46 +00:00
Avoid compiler warning.
This commit is contained in:
parent
c60e91bf59
commit
0d8e8136e9
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user