Module Name: src
Committed By: christos
Date: Wed Mar 21 15:32:26 UTC 2012
Modified Files:
src/lib/libc/gen: nlist.c nlist_aout.c nlist_coff.c
Log Message:
c89 definitions
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/gen/nlist.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libc/gen/nlist_aout.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libc/gen/nlist_coff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/nlist.c
diff -u src/lib/libc/gen/nlist.c:1.23 src/lib/libc/gen/nlist.c:1.24
--- src/lib/libc/gen/nlist.c:1.23 Tue Mar 20 12:36:05 2012
+++ src/lib/libc/gen/nlist.c Wed Mar 21 11:32:26 2012
@@ -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 @@ static const struct {
};
int
-nlist(name, list)
- const char *name;
- struct nlist *list;
+nlist(const char *name, struct nlist *list)
{
int fd, n;
@@ -130,9 +128,7 @@ nlist(name, list)
}
int
-__fdnlist(fd, list)
- int fd;
- struct nlist *list;
+__fdnlist(int fd, struct nlist *list)
{
size_t i;
int rv;
Index: src/lib/libc/gen/nlist_aout.c
diff -u src/lib/libc/gen/nlist_aout.c:1.22 src/lib/libc/gen/nlist_aout.c:1.23
--- src/lib/libc/gen/nlist_aout.c:1.22 Thu Aug 20 07:08:59 2009
+++ src/lib/libc/gen/nlist_aout.c Wed Mar 21 11:32:26 2012
@@ -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 @@ struct nlist;
#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;
Index: src/lib/libc/gen/nlist_coff.c
diff -u src/lib/libc/gen/nlist_coff.c:1.8 src/lib/libc/gen/nlist_coff.c:1.9
--- src/lib/libc/gen/nlist_coff.c:1.8 Fri Aug 21 04:42:02 2009
+++ src/lib/libc/gen/nlist_coff.c Wed Mar 21 11:32:26 2012
@@ -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 @@ struct coff_extsym {
#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;