Skip to content

Commit

Permalink
libc/nano: Switch to mynewt_main in start.c
Browse files Browse the repository at this point in the history
When move from main to mynewt_main was made,
start.c for newlib-nano was omitted.

Now builds with nano libc also expect mynewt_main
  • Loading branch information
kasjer committed Nov 7, 2023
1 parent 586cc64 commit 360defd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libc/nano/src/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <stdlib.h>
#include "os/mynewt.h"

extern int main(int argc, char **argv);
extern int mynewt_main(int argc, char **argv);
void __libc_init_array(void);

/*
Expand All @@ -39,10 +39,10 @@ void _start(void)
#if !MYNEWT_VAL(OS_SCHEDULING)
int rc;

rc = main(0, NULL);
rc = mynewt_main(0, NULL);
exit(rc);
#else
os_init(main);
os_init(mynewt_main);
os_start();
#endif
}
Expand Down

0 comments on commit 360defd

Please sign in to comment.