summaryrefslogtreecommitdiff
path: root/apps/examples/random/random_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/random/random_main.c')
-rw-r--r--apps/examples/random/random_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/random/random_main.c b/apps/examples/random/random_main.c
index ea8a3abc0..ade152225 100644
--- a/apps/examples/random/random_main.c
+++ b/apps/examples/random/random_main.c
@@ -76,7 +76,11 @@
* rand_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int rand_main(int argc, char *argv[])
+#endif
{
uint32_t buffer[CONFIG_EXAMPLES_MAXSAMPLES];
int nsamples = CONFIG_EXAMPLES_NSAMPLES;