From 47bea0e67e4093d4482e8781782b98abda134801 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 09:19:15 -0600 Subject: With kernel build, entry point to all tasks is main, not some xyz_main --- apps/examples/pashello/pashello.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/examples/pashello') diff --git a/apps/examples/pashello/pashello.c b/apps/examples/pashello/pashello.c index 731bd7e37..d6b45c03e 100644 --- a/apps/examples/pashello/pashello.c +++ b/apps/examples/pashello/pashello.c @@ -75,7 +75,11 @@ * pashello_main ****************************************************************************/ +#ifdef CONFIG_BUILD_KERNEL +int main(int argc, FAR char **argv) +#else int pashello_main(int argc, FAR char *argv[]) +#endif { FAR struct pexec_s *st; int exitcode = EXIT_SUCCESS; -- cgit v1.2.3