summaryrefslogtreecommitdiff
path: root/usr.bin/finger/sprint.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
commitb8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch)
tree5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/finger/sprint.c
parentf18f6607440f6d2da08fac3522d88a65c77a5f3e (diff)
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/finger/sprint.c')
-rw-r--r--usr.bin/finger/sprint.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c
index 9bc48c15fca..26428046f19 100644
--- a/usr.bin/finger/sprint.c
+++ b/usr.bin/finger/sprint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sprint.c,v 1.7 2003/06/03 02:56:08 millert Exp $ */
+/* $OpenBSD: sprint.c,v 1.8 2003/06/10 22:20:46 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -34,7 +34,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)sprint.c 5.8 (Berkeley) 12/4/90";*/
-static char rcsid[] = "$OpenBSD: sprint.c,v 1.7 2003/06/03 02:56:08 millert Exp $";
+static char rcsid[] = "$OpenBSD: sprint.c,v 1.8 2003/06/10 22:20:46 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -47,7 +47,7 @@ static char rcsid[] = "$OpenBSD: sprint.c,v 1.7 2003/06/03 02:56:08 millert Exp
#include "extern.h"
void
-sflag_print()
+sflag_print(void)
{
PERSON *pn;
WHERE *w;
@@ -132,7 +132,7 @@ office:
}
PERSON **
-sort()
+sort(void)
{
PERSON *pn, **lp;
PERSON **list;
@@ -146,15 +146,13 @@ sort()
}
int
-psort(p, t)
- const void *p, *t;
+psort(const void *p, const void *t)
{
return(strcmp((*(PERSON **)p)->name, (*(PERSON **)t)->name));
}
void
-stimeprint(w)
- WHERE *w;
+stimeprint(WHERE *w)
{
struct tm *delta;