main should always return int

this fixes some compiler warnings
This commit is contained in:
Christian Mehlis 2013-06-09 18:02:58 +02:00
parent b41fd19216
commit 8f74612762
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread; volatile tcb_t *active_thread;
volatile int lpm_prevent_sleep = 0; volatile int lpm_prevent_sleep = 0;
extern void main(void); extern int main(void);
static void idle_thread(void) { static void idle_thread(void) {
while(1) { while(1) {

View File

@ -9,7 +9,7 @@
#define ENABLE_DEBUG #define ENABLE_DEBUG
#include <debug.h> #include <debug.h>
extern void main(void); extern int main(void);
void auto_init(void) { void auto_init(void) {
#ifdef MODULE_BOARD_DISPLAY #ifdef MODULE_BOARD_DISPLAY