Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mvme68k/stand Make sure main() has a prototype and ...



details:   https://anonhg.NetBSD.org/src/rev/9a32a2574527
branches:  trunk
changeset: 526510:9a32a2574527
user:      scw <scw%NetBSD.org@localhost>
date:      Sat May 04 22:05:29 2002 +0000

description:
Make sure main() has a prototype and a return type of "int".

diffstat:

 sys/arch/mvme68k/stand/bootxx/bootxx.c |  6 ++++--
 sys/arch/mvme68k/stand/libbug/bugcrt.c |  6 +++---
 sys/arch/mvme68k/stand/prtvid/prtvid.c |  3 ++-
 3 files changed, 9 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 07ba555cfa73 -r 9a32a2574527 sys/arch/mvme68k/stand/bootxx/bootxx.c
--- a/sys/arch/mvme68k/stand/bootxx/bootxx.c    Sat May 04 21:56:50 2002 +0000
+++ b/sys/arch/mvme68k/stand/bootxx/bootxx.c    Sat May 04 22:05:29 2002 +0000
@@ -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         char bootprog_name[], bootprog_rev[];
 
-void
+int main(void);
+
+int
 main()
 {
        struct open_file        f;
diff -r 07ba555cfa73 -r 9a32a2574527 sys/arch/mvme68k/stand/libbug/bugcrt.c
--- a/sys/arch/mvme68k/stand/libbug/bugcrt.c    Sat May 04 21:56:50 2002 +0000
+++ b/sys/arch/mvme68k/stand/libbug/bugcrt.c    Sat May 04 22:05:29 2002 +0000
@@ -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 @@
 
        id = mvmeprom_getbrdid();
        bugargs.cputyp = id->model;
-       main();
+       (void) main();
        _rtt();
        /* NOTREACHED */
 }
diff -r 07ba555cfa73 -r 9a32a2574527 sys/arch/mvme68k/stand/prtvid/prtvid.c
--- a/sys/arch/mvme68k/stand/prtvid/prtvid.c    Sat May 04 21:56:50 2002 +0000
+++ b/sys/arch/mvme68k/stand/prtvid/prtvid.c    Sat May 04 22:05:29 2002 +0000
@@ -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[];



Home | Main Index | Thread Index | Old Index