Eliminate "no previous prototype for main" warnings.

This commit is contained in:
Ian Lepore 2014-07-26 03:33:19 +00:00
parent 3e479cb537
commit a6fc334653
6 changed files with 14 additions and 1 deletions

View File

@ -30,6 +30,8 @@
typedef void fn_t(void);
int main(void);
int
main(void)
{

View File

@ -28,6 +28,8 @@
#include "lib.h"
#include "at91rm9200_lowlevel.h"
int main(void);
int
main(void)
{

View File

@ -31,7 +31,9 @@
#define OFFSET 0
void
int main(void);
int
main(void)
{
int len, i, j, off, sec;
@ -59,4 +61,5 @@ main(void)
continue;
printf("Done\n");
reset();
return (1);
}

View File

@ -93,6 +93,7 @@ static char kname[1024];
static uint32_t opts;
static uint8_t dsk_meta;
int main(void);
static void load(void);
static int parse(void);
static int dskread(void *, unsigned, unsigned);
@ -190,6 +191,7 @@ main(void)
else
load();
}
return (1);
}
static void

View File

@ -28,6 +28,8 @@
#include "emac.h"
#include "lib.h"
int main(void);
/*
* .KB_C_FN_DEFINITION_START
* int main(void)

View File

@ -43,6 +43,8 @@
#include "spi_flash.h"
#include "ee.h"
int main(void);
int
main(void)
{