summaryrefslogtreecommitdiff
path: root/apps/examples/cpuhog/cpuhog_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/cpuhog/cpuhog_main.c')
-rw-r--r--apps/examples/cpuhog/cpuhog_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/cpuhog/cpuhog_main.c b/apps/examples/cpuhog/cpuhog_main.c
index 486895065..729a38aa1 100644
--- a/apps/examples/cpuhog/cpuhog_main.c
+++ b/apps/examples/cpuhog/cpuhog_main.c
@@ -96,7 +96,11 @@ static struct state_s
* Public Functions
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int cpuhog_main(int argc, char *argv[])
+#endif
{
int id = -1;
char buf[256];