Make sure main() has a prototype and a return type of "int".
This commit is contained in:
parent
ca9a3c5b44
commit
132a9c91d5
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bootxx.c,v 1.6 2000/12/04 18:44:51 scw Exp $ */
|
||||
/* $NetBSD: bootxx.c,v 1.7 2002/05/04 22:05:29 scw Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -71,7 +71,9 @@ extern daddr_t block_table[];
|
||||
|
||||
extern char bootprog_name[], bootprog_rev[];
|
||||
|
||||
void
|
||||
int main(void);
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
struct open_file f;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bugcrt.c,v 1.3 2000/12/05 21:54:33 scw Exp $ */
|
||||
/* $NetBSD: bugcrt.c,v 1.4 2002/05/04 22:05:30 scw Exp $ */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <machine/prom.h>
|
||||
@ -8,7 +8,7 @@
|
||||
void
|
||||
_bugstart(void)
|
||||
{
|
||||
extern void main(void);
|
||||
extern int main(void);
|
||||
struct mvmeprom_brdid *id;
|
||||
|
||||
/*
|
||||
@ -19,7 +19,7 @@ _bugstart(void)
|
||||
|
||||
id = mvmeprom_getbrdid();
|
||||
bugargs.cputyp = id->model;
|
||||
main();
|
||||
(void) main();
|
||||
_rtt();
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
@ -1,10 +1,11 @@
|
||||
/* $NetBSD: prtvid.c,v 1.1 1996/05/17 19:55:00 chuck Exp $ */
|
||||
/* $NetBSD: prtvid.c,v 1.2 2002/05/04 22:05:30 scw Exp $ */
|
||||
|
||||
#include <stdio.h>
|
||||
#define __DBINTERFACE_PRIVATE
|
||||
#include <db.h>
|
||||
#include <machine/disklabel.h>
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
|
Loading…
Reference in New Issue
Block a user