summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_fscmds.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-14 13:30:22 -0600
commit909af806c753228e9ae279432993c93e9180b54f (patch)
tree943750805050126fae960ac09211e22d8ca2cef5 /apps/nshlib/nsh_fscmds.c
parent37a1adc0053c37b3bc70379f489f93359724186a (diff)
downloadnuttx-909af806c753228e9ae279432993c93e9180b54f.tar.gz
nuttx-909af806c753228e9ae279432993c93e9180b54f.tar.bz2
nuttx-909af806c753228e9ae279432993c93e9180b54f.zip
Changes to get PX4 config to build. Also some warning removal
Diffstat (limited to 'apps/nshlib/nsh_fscmds.c')
-rw-r--r--apps/nshlib/nsh_fscmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/nshlib/nsh_fscmds.c b/apps/nshlib/nsh_fscmds.c
index 19fc01afa..0ece652f3 100644
--- a/apps/nshlib/nsh_fscmds.c
+++ b/apps/nshlib/nsh_fscmds.c
@@ -1,7 +1,7 @@
/****************************************************************************
* apps/nshlib/nsh_fscmds.c
*
- * Copyright (C) 2007-2009, 2011-2013 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009, 2011-2014 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -1491,7 +1491,7 @@ int cmd_cmp(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
/* A partial read indicates the end of file (usually) */
- if (nbytesread1 < sizeof(buf1))
+ if (nbytesread1 < (size_t)sizeof(buf1))
{
break;
}
@@ -1516,3 +1516,4 @@ errout:
}
#endif
#endif
+