From 42bde7fb276bd88a334d799755d524e8ded4a014 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 30 Apr 2020 20:15:08 +0800 Subject: [PATCH] examples: Remove the prefix of main from bmi160 and charger Signed-off-by: Xiang Xiao --- examples/bmi160/sixaxis_main.c | 4 ---- examples/charger/charger_main.c | 8 ++++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/bmi160/sixaxis_main.c b/examples/bmi160/sixaxis_main.c index 66a2ab794..6f057aaa8 100644 --- a/examples/bmi160/sixaxis_main.c +++ b/examples/bmi160/sixaxis_main.c @@ -57,11 +57,7 @@ * sixaxis_main ****************************************************************************/ -#ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) -#else -int sixaxis_main(int argc, char *argv[]) -#endif { int fd; struct accel_gyro_st_s data; diff --git a/examples/charger/charger_main.c b/examples/charger/charger_main.c index 8dad39424..c21e98d78 100644 --- a/examples/charger/charger_main.c +++ b/examples/charger/charger_main.c @@ -33,6 +33,10 @@ * ****************************************************************************/ +/**************************************************************************** + * Included Files + ****************************************************************************/ + #include #include @@ -181,11 +185,7 @@ static int show_bat_status(int fd) * charger_main ****************************************************************************/ -#ifdef CONFIG_BUILD_KERNEL int main(int argc, FAR char *argv[]) -#else -int charger_main(int argc, char *argv[]) -#endif { int fd; int current;