diff options
Diffstat (limited to 'apps/system/composite')
-rw-r--r-- | apps/system/composite/composite_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/system/composite/composite_main.c b/apps/system/composite/composite_main.c index 5bba46132..c4ab61855 100644 --- a/apps/system/composite/composite_main.c +++ b/apps/system/composite/composite_main.c @@ -673,7 +673,11 @@ void board_cdcuninitialize(FAR struct usbdevclass_driver_s *classdev) * ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int conn_main(int argc, char *argv[]) +#endif { int ret; @@ -822,10 +826,14 @@ errout: * device. This program is only available if CONFIG_NSH_BUILTIN_APPS * is defined in the NuttX configuration. In that case, this program can * be executed by entering the "msdis" command at the NSH console. +#ifdef CONFIG_BUILD_KERNEL * +int main(int argc, FAR char **argv) ****************************************************************************/ +#else #ifdef CONFIG_NSH_BUILTIN_APPS +#endif int disconn_main(int argc, char *argv[]) { /* First check if the USB mass storage device is already connected */ |