summaryrefslogtreecommitdiff
path: root/apps/examples/smart/smart_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/smart/smart_main.c')
-rw-r--r--apps/examples/smart/smart_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/examples/smart/smart_main.c b/apps/examples/smart/smart_main.c
index d01f814f3..c2c0f663d 100644
--- a/apps/examples/smart/smart_main.c
+++ b/apps/examples/smart/smart_main.c
@@ -796,7 +796,11 @@ static int smart_directory(void)
* Name: smart_main
****************************************************************************/
+#ifdef CONFIG_BUILD_KERNEL
+int main(int argc, FAR char **argv)
+#else
int smart_main(int argc, char *argv[])
+#endif
{
FAR struct mtd_dev_s *mtd;
unsigned int i;