mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
Fixed compiler warnings.
This commit is contained in:

committed by
Xiang Xiao

parent
daf9e80936
commit
1c7839c28c
@@ -262,7 +262,7 @@ int nsh_readfile(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
|
||||
{
|
||||
/* Successful read. Make sure that the buffer is null terminated */
|
||||
|
||||
DEBUGASSERT(nread <= remaining);
|
||||
DEBUGASSERT(nread <= (ssize_t)remaining);
|
||||
ntotal += nread;
|
||||
buffer[ntotal] = '\0';
|
||||
|
||||
|
Reference in New Issue
Block a user