diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:19:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-06 09:19:15 -0600 |
commit | 47bea0e67e4093d4482e8781782b98abda134801 (patch) | |
tree | 950f50b0f2119e9785e89becdaf239bb298d5146 /apps/system/usbmsc | |
parent | dfbcec0bde2500b34356050537ca9d85c694412b (diff) | |
download | px4-nuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.gz px4-nuttx-47bea0e67e4093d4482e8781782b98abda134801.tar.bz2 px4-nuttx-47bea0e67e4093d4482e8781782b98abda134801.zip |
With kernel build, entry point to all tasks is main, not some xyz_main
Diffstat (limited to 'apps/system/usbmsc')
-rw-r--r-- | apps/system/usbmsc/usbmsc_main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/system/usbmsc/usbmsc_main.c b/apps/system/usbmsc/usbmsc_main.c index 39eaebeff..1e5a314ae 100644 --- a/apps/system/usbmsc/usbmsc_main.c +++ b/apps/system/usbmsc/usbmsc_main.c @@ -389,7 +389,11 @@ static int usbmsc_enumerate(struct usbtrace_s *trace, void *arg) * ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int msconn_main(int argc, char *argv[]) +#endif { FAR void *handle; int ret; @@ -568,10 +572,14 @@ int msconn_main(int argc, char *argv[]) * 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 msdis_main(int argc, char *argv[]) { /* First check if the USB mass storage device is already connected */ |