summaryrefslogtreecommitdiff
path: root/apps/nshlib
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-03-06 13:31:13 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-03-06 13:31:13 -0600
commit66aa7b68fca4b870fb63ad3eb53f05be87368832 (patch)
treedd51c5d72b734ab156e584dd915d98d3064877c3 /apps/nshlib
parent77a632298aebc2287acf233f6dd998aa8d1f4db8 (diff)
downloadnuttx-66aa7b68fca4b870fb63ad3eb53f05be87368832.tar.gz
nuttx-66aa7b68fca4b870fb63ad3eb53f05be87368832.tar.bz2
nuttx-66aa7b68fca4b870fb63ad3eb53f05be87368832.zip
Minor cleanup of some new configurations; warning removal with GCC 4.8.2
Diffstat (limited to 'apps/nshlib')
-rw-r--r--apps/nshlib/nsh_mntcmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/nshlib/nsh_mntcmds.c b/apps/nshlib/nsh_mntcmds.c
index 741327405..de40c8e6c 100644
--- a/apps/nshlib/nsh_mntcmds.c
+++ b/apps/nshlib/nsh_mntcmds.c
@@ -194,7 +194,7 @@ static int df_man_readable_handler(FAR const char *mountpoint,
/* Find the label for size */
which = 0;
- while (size >= 9999 || (size & 0x3ff) == 0 && size)
+ while (size >= 9999 || ((size & 0x3ff) == 0 && size != 0))
{
which++;
size >>= 10;
@@ -205,7 +205,7 @@ static int df_man_readable_handler(FAR const char *mountpoint,
/* Find the label for free */
which = 0;
- while (free >= 9999 || (free & 0x3ff) == 0 && free)
+ while (free >= 9999 || ((free & 0x3ff) == 0 && free != 0))
{
which++;
free >>= 10;
@@ -216,7 +216,7 @@ static int df_man_readable_handler(FAR const char *mountpoint,
/* Find the label for used */
which = 0;
- while (used >= 9999 || (used & 0x3ff) == 0 && used)
+ while (used >= 9999 || ((used & 0x3ff) == 0 && used != 0))
{
which++;
used >>= 10;