summaryrefslogtreecommitdiff
path: root/apps/system/hex2bin/hex2mem_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/hex2bin/hex2mem_main.c')
-rw-r--r--apps/system/hex2bin/hex2mem_main.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/apps/system/hex2bin/hex2mem_main.c b/apps/system/hex2bin/hex2mem_main.c
index 86c061c23..b8b814d60 100644
--- a/apps/system/hex2bin/hex2mem_main.c
+++ b/apps/system/hex2bin/hex2mem_main.c
@@ -95,11 +95,7 @@ static void show_usage(FAR const char *progname, int exitcode)
}
/****************************************************************************
- * Private Functions
- ****************************************************************************/
-
-/****************************************************************************
- * Name:
+ * Public Functions
****************************************************************************/
/****************************************************************************
@@ -113,7 +109,7 @@ static void show_usage(FAR const char *progname, int exitcode)
*
* Returned Value
* EXIT_SUCESS on success; EXIT_FAILURE on failure
- *
+ *
****************************************************************************/
int hex2mem_main(int argc, char **argv)
@@ -139,9 +135,11 @@ int hex2mem_main(int argc, char **argv)
{
switch (option)
{
+#ifdef CONFIG_SYSTEM_HEX2MEM_USAGE
case 'h':
show_usage(argv[0], EXIT_SUCCESS);
break;
+#endif
case 's':
baseaddr = strtoul(optarg, &endptr, 16);
@@ -221,12 +219,13 @@ int hex2mem_main(int argc, char **argv)
return -errcode;
}
- /* Wrap the FILE stream as standard streams; wrap the memory as a memory
+ /* Wrap the FILE stream as a standard stream; wrap the memory as a memory
* stream.
*/
lib_stdinstream(&stdinstream, instream);
- lib_memsostream(&memoutstream, (FAR char *)baseaddr, (int)(endpaddr - baseaddr));
+ lib_memsostream(&memoutstream, (FAR char *)baseaddr,
+ (int)(endpaddr - baseaddr));
/* And do the deed */