Source-Changes-HG archive

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

[src/trunk]: src/lib/csu Use ANSI function decls.



details:   https://anonhg.NetBSD.org/src/rev/e2fc1946282b
branches:  trunk
changeset: 569638:e2fc1946282b
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Aug 26 21:23:06 2004 +0000

description:
Use ANSI function decls.

diffstat:

 lib/csu/vax_elf/crt0.c |  19 ++++++++-----------
 lib/csu/x86_64/crt0.c  |  19 ++++++++-----------
 2 files changed, 16 insertions(+), 22 deletions(-)

diffs (94 lines):

diff -r 9854aa4d637c -r e2fc1946282b lib/csu/vax_elf/crt0.c
--- a/lib/csu/vax_elf/crt0.c    Thu Aug 26 21:21:33 2004 +0000
+++ b/lib/csu/vax_elf/crt0.c    Thu Aug 26 21:23:06 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.9 2003/07/26 19:24:30 salo Exp $ */
+/* $NetBSD: crt0.c,v 1.10 2004/08/26 21:24:09 thorpej Exp $ */
 
 /*
  * Copyright (c) 1999 Matt Thomas
@@ -37,8 +37,8 @@
 
 #include "common.h"
 
-void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
-    const Obj_Entry *, struct ps_strings *));
+void ___start(int, char **, char **, void (*cleanup)(void),
+    const Obj_Entry *, struct ps_strings *);
 
 __asm(" .text;"
 "      .align  2;"
@@ -58,13 +58,10 @@
        );
 
 void
-___start(argc, argv, envp, cleanup, obj, ps_strings)
-       int argc;
-       char **argv;
-       char **envp;
-       void (*cleanup) __P((void));            /* from shared loader */
-       const Obj_Entry *obj;                   /* from shared loader */
-       struct ps_strings *ps_strings;
+___start(int argc, char **argv, char **envp,
+    void (*cleanup)(void),                     /* from shared loader */
+    const Obj_Entry *obj,                      /* from shared loader */
+    struct ps_strings *ps_strings)
 {
        environ = envp;
 
@@ -98,7 +95,7 @@
  * NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
  */
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.9 2003/07/26 19:24:30 salo Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.10 2004/08/26 21:24:09 thorpej Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "common.c"
diff -r 9854aa4d637c -r e2fc1946282b lib/csu/x86_64/crt0.c
--- a/lib/csu/x86_64/crt0.c     Thu Aug 26 21:21:33 2004 +0000
+++ b/lib/csu/x86_64/crt0.c     Thu Aug 26 21:23:06 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.c,v 1.3 2003/11/28 23:25:54 fvdl Exp $ */
+/* $NetBSD: crt0.c,v 1.4 2004/08/26 21:23:06 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 Christos Zoulas
@@ -39,8 +39,8 @@
 
 #include "common.h"
 
-void ___start __P((int, char **, char **, void (*cleanup) __P((void)),
-    const Obj_Entry *, struct ps_strings *));
+void ___start(int, char **, char **, void (*cleanup)(void),
+    const Obj_Entry *, struct ps_strings *);
 
 __asm(" .text                                          ; \
        .align  8                                       ; \
@@ -60,13 +60,10 @@
        jmp     ___start                                ; ");
 
 void
-___start(argc, argv, envp, cleanup, obj, ps_strings)
-       int argc;
-       char **argv;
-       char **envp;
-       void (*cleanup) __P((void));            /* from shared loader */
-       const Obj_Entry *obj;                   /* from shared loader */
-       struct ps_strings *ps_strings;
+___start(int argc, char **argv, char **envp,
+    void (*cleanup)(void),                     /* from shared loader */
+    const Obj_Entry *obj,                      /* from shared loader */
+    struct ps_strings *ps_strings)
 {
        environ = envp;
 
@@ -100,7 +97,7 @@
  * NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
  */
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.3 2003/11/28 23:25:54 fvdl Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.4 2004/08/26 21:23:06 thorpej Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "common.c"



Home | Main Index | Thread Index | Old Index