examples: Remove the prefix of main from bmi160 and charger

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-04-30 20:15:08 +08:00 committed by patacongo
parent 06e74202b5
commit 42bde7fb27
2 changed files with 4 additions and 8 deletions

View File

@ -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;

View File

@ -33,6 +33,10 @@
*
****************************************************************************/
/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/ioctl.h>
@ -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;