summaryrefslogtreecommitdiff
path: root/bin/ps/nlist.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 23:42:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-11 23:42:13 +0000
commitb7e43e8440a0d47510d40dd5d9440dccf52a05f2 (patch)
tree20886296c48f50f9e7f28003e17761fd8acd14e0 /bin/ps/nlist.c
parenta760a3046bfab4c3721cea25480d9f998d1cf0e8 (diff)
ansification, art ok
Diffstat (limited to 'bin/ps/nlist.c')
-rw-r--r--bin/ps/nlist.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/bin/ps/nlist.c b/bin/ps/nlist.c
index 8a93777a9e5..342bd4b046b 100644
--- a/bin/ps/nlist.c
+++ b/bin/ps/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.13 2003/06/02 23:32:09 millert Exp $ */
+/* $OpenBSD: nlist.c,v 1.14 2003/06/11 23:42:12 deraadt Exp $ */
/* $NetBSD: nlist.c,v 1.11 1995/03/21 09:08:03 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: nlist.c,v 1.13 2003/06/02 23:32:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: nlist.c,v 1.14 2003/06/11 23:42:12 deraadt Exp $";
#endif
#endif /* not lint */
@@ -79,7 +79,7 @@ extern int kvm_sysctl_only;
kvm_read(kd, psnl[x].n_value, &v, sizeof v) != sizeof(v)
int
-donlist()
+donlist(void)
{
int rval, mib[2];
size_t siz;
@@ -109,8 +109,7 @@ donlist()
warnx("maxslp: %s", kvm_geterr(kd));
eval = rval = 1;
}
- }
- else {
+ } else {
siz = sizeof (fscale);
mib[0] = CTL_KERN;
mib[1] = KERN_FSCALE;
@@ -145,8 +144,7 @@ donlist()
}
void
-nlisterr(nl)
- struct nlist nl[];
+nlisterr(struct nlist nl[])
{
int i;