Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen c89 definitions



details:   https://anonhg.NetBSD.org/src/rev/a1adfef1ba39
branches:  trunk
changeset: 778305:a1adfef1ba39
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Mar 21 15:32:26 2012 +0000

description:
c89 definitions

diffstat:

 lib/libc/gen/nlist.c      |  12 ++++--------
 lib/libc/gen/nlist_aout.c |   8 +++-----
 lib/libc/gen/nlist_coff.c |   8 +++-----
 3 files changed, 10 insertions(+), 18 deletions(-)

diffs (98 lines):

diff -r a767557101f1 -r a1adfef1ba39 lib/libc/gen/nlist.c
--- a/lib/libc/gen/nlist.c      Wed Mar 21 14:52:40 2012 +0000
+++ b/lib/libc/gen/nlist.c      Wed Mar 21 15:32:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist.c,v 1.23 2012/03/20 16:36:05 matt Exp $ */
+/* $NetBSD: nlist.c,v 1.24 2012/03/21 15:32:26 christos Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)nlist.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: nlist.c,v 1.23 2012/03/20 16:36:05 matt Exp $");
+__RCSID("$NetBSD: nlist.c,v 1.24 2012/03/21 15:32:26 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -112,9 +112,7 @@
 };
        
 int
-nlist(name, list)
-       const char *name;
-       struct nlist *list;
+nlist(const char *name, struct nlist *list)
 {
        int fd, n;
 
@@ -130,9 +128,7 @@
 }
 
 int
-__fdnlist(fd, list)
-       int fd;
-       struct nlist *list;
+__fdnlist(int fd, struct nlist *list)
 {
        size_t i;
        int rv;
diff -r a767557101f1 -r a1adfef1ba39 lib/libc/gen/nlist_aout.c
--- a/lib/libc/gen/nlist_aout.c Wed Mar 21 14:52:40 2012 +0000
+++ b/lib/libc/gen/nlist_aout.c Wed Mar 21 15:32:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_aout.c,v 1.22 2009/08/20 11:08:59 martin Exp $ */
+/* $NetBSD: nlist_aout.c,v 1.23 2012/03/21 15:32:26 christos Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)nlist.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: nlist_aout.c,v 1.22 2009/08/20 11:08:59 martin Exp $");
+__RCSID("$NetBSD: nlist_aout.c,v 1.23 2012/03/21 15:32:26 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -91,9 +91,7 @@
 #include <sys/exec_aout.h>
 
 int
-__fdnlist_aout(fd, list)
-       int fd;
-       struct nlist *list;
+__fdnlist_aout(int fd, struct nlist *list)
 {
        struct nlist *p, *s;
        char *strtab;
diff -r a767557101f1 -r a1adfef1ba39 lib/libc/gen/nlist_coff.c
--- a/lib/libc/gen/nlist_coff.c Wed Mar 21 14:52:40 2012 +0000
+++ b/lib/libc/gen/nlist_coff.c Wed Mar 21 15:32:26 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nlist_coff.c,v 1.8 2009/08/21 08:42:02 he Exp $ */
+/* $NetBSD: nlist_coff.c,v 1.9 2012/03/21 15:32:26 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nlist_coff.c,v 1.8 2009/08/21 08:42:02 he Exp $");
+__RCSID("$NetBSD: nlist_coff.c,v 1.9 2012/03/21 15:32:26 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -81,9 +81,7 @@
 #define es_offset u.s.u_offset
 
 int
-__fdnlist_coff(fd, list)
-       int fd;
-       struct nlist *list;
+__fdnlist_coff(int fd, struct nlist *list)
 {
        struct nlist *p;
        struct coff_filehdr *filehdrp;



Home | Main Index | Thread Index | Old Index