summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-30 15:15:27 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-30 15:15:27 +0000
commit0f672c5cb1fa985b5f50f8f90343e991172e27f7 (patch)
treebe42218bf3b3abb3bfaf2bdbed600e02ac65ab0a /usr.bin
parenteda72505563ab52d857aef5b0b28eb3c598b0942 (diff)
fix warnings
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rwho/rwho.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c
index 87a34951c5a..fe6c6122bd3 100644
--- a/usr.bin/rwho/rwho.c
+++ b/usr.bin/rwho/rwho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rwho.c,v 1.3 1996/08/30 11:10:32 deraadt Exp $ */
+/* $OpenBSD: rwho.c,v 1.4 1996/08/30 15:15:26 deraadt Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
@@ -41,7 +41,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)rwho.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: rwho.c,v 1.3 1996/08/30 11:10:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rwho.c,v 1.4 1996/08/30 15:15:26 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -142,7 +142,8 @@ main(argc, argv)
}
(void) close(f);
}
- qsort((char *)myutmp, nusers, sizeof (struct myutmp), utmpcmp);
+ qsort((char *)myutmp, nusers, sizeof (struct myutmp),
+ (int (*)())utmpcmp);
mp = myutmp;
width = 0;
for (i = 0; i < nusers; i++) {