summaryrefslogtreecommitdiff
path: root/apps/system/zmodem/sz_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/system/zmodem/sz_main.c')
-rw-r--r--apps/system/zmodem/sz_main.c4
1 files changed, 4 insertions, 0 deletions
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;