summaryrefslogtreecommitdiff
path: root/apps/system/zmodem
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-06 09:19:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-06 09:19:15 -0600
commit47bea0e67e4093d4482e8781782b98abda134801 (patch)
tree950f50b0f2119e9785e89becdaf239bb298d5146 /apps/system/zmodem
parentdfbcec0bde2500b34356050537ca9d85c694412b (diff)
downloadnuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.gz
nuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.bz2
nuttx-47bea0e67e4093d4482e8781782b98abda134801.zip
With kernel build, entry point to all tasks is main, not some xyz_main
Diffstat (limited to 'apps/system/zmodem')
-rw-r--r--apps/system/zmodem/rz_main.c4
-rw-r--r--apps/system/zmodem/sz_main.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/apps/system/zmodem/rz_main.c b/apps/system/zmodem/rz_main.c
index a7d475e2f..cd1f57ed8 100644
--- a/apps/system/zmodem/rz_main.c
+++ b/apps/system/zmodem/rz_main.c
@@ -70,7 +70,11 @@ static void show_usage(FAR const char *progname, int errcode)
* Public Functions
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int rz_main(int argc, FAR char **argv)
+#endif
{
ZMRHANDLE handle;
FAR const char *devname = CONFIG_SYSTEM_ZMODEM_DEVNAME;
diff --git a/apps/system/zmodem/sz_main.c b/apps/system/zmodem/sz_main.c
index e20af9e97..863ad8588 100644
--- a/apps/system/zmodem/sz_main.c
+++ b/apps/system/zmodem/sz_main.c
@@ -89,7 +89,11 @@ static void show_usage(FAR const char *progname, int errcode)
* Public Functions
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int sz_main(int argc, FAR char **argv)
+#endif
{
enum zm_xfertype_e xfrtype = XM_XFERTYPE_NORMAL;
enum zm_option_e xfroption = XM_OPTION_REPLACE;