summaryrefslogtreecommitdiff
path: root/apps/examples/configdata
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
commit797e41438176de465272bef182e035cd0fe5884a (patch)
tree3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/configdata
parent6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff)
downloadnuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz
nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2
nuttx-797e41438176de465272bef182e035cd0fe5884a.zip
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/configdata')
-rw-r--r--apps/examples/configdata/configdata_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/examples/configdata/configdata_main.c b/apps/examples/configdata/configdata_main.c
index e9e730889..a2d887a66 100644
--- a/apps/examples/configdata/configdata_main.c
+++ b/apps/examples/configdata/configdata_main.c
@@ -706,9 +706,9 @@ int configdata_main(int argc, char *argv[])
*/
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
- message("\n=== FILLING %d =============================\n", i);
+ message("\n=== FILLING %u =============================\n", i);
#endif
- ret = configdata_fillconfig();
+ (void)configdata_fillconfig();
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
message("Filled /dev/config\n");
message(" Number of entries: %d\n", g_nentries);
@@ -735,7 +735,7 @@ int configdata_main(int argc, char *argv[])
/* Delete some entries */
#ifndef CONFIG_EXAMPLES_CONFIGDATA_SILENT
- message("\n=== DELETING %d ============================\n", i);
+ message("\n=== DELETING %u ============================\n", i);
#endif
ret = configdata_delentries();
if (ret < 0)
@@ -785,7 +785,7 @@ int configdata_main(int argc, char *argv[])
#else
if ((i % EXAMPLES_CONFIGDATA_REPORT) == 0)
{
- message("%d\n", i);
+ message("%u\n", i);
msgflush();
}
#endif