diff options
Diffstat (limited to 'apps/system/zmodem')
-rw-r--r-- | apps/system/zmodem/rz_main.c | 4 | ||||
-rw-r--r-- | apps/system/zmodem/sz_main.c | 4 |
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; |