c89 definitions

This commit is contained in:
christos 2012-03-21 15:32:26 +00:00
parent acf4d8064f
commit 2fab93ccbb
3 changed files with 10 additions and 18 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;