summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-04-19 13:31:57 +0000
committermickey <mickey@openbsd.org>1996-04-19 13:31:57 +0000
commit92118a59c03d6fd3fb85c8bd89fbca9d1904f07b (patch)
treeb77a6387cb89531653b070a6256e275000f33817
parent-L<string> option added to support LOCALID behaviour. (diff)
downloadwireguard-openbsd-92118a59c03d6fd3fb85c8bd89fbca9d1904f07b.tar.xz
wireguard-openbsd-92118a59c03d6fd3fb85c8bd89fbca9d1904f07b.zip
Fix a bit, so it's now compiles.
needs more work to do disk stats the way vmstat do.
-rw-r--r--usr.bin/systat/disks.c8
-rw-r--r--usr.bin/systat/swap.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/systat/disks.c b/usr.bin/systat/disks.c
index aa42b2c9d76..2098d6f8b52 100644
--- a/usr.bin/systat/disks.c
+++ b/usr.bin/systat/disks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disks.c,v 1.2 1996/03/27 19:32:52 niklas Exp $ */
+/* $OpenBSD: disks.c,v 1.3 1996/04/19 13:31:57 mickey Exp $ */
/* $NetBSD: disks.c,v 1.3 1996/03/15 22:19:23 ragge Exp $ */
/*-
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)disks.c 8.1 (Berkeley) 6/6/93";
static char rcsid[] = "$NetBSD: disks.c,v 1.3 1996/03/15 22:19:23 ragge Exp $";
#endif
-static char rcsid[] = "$OpenBSD: disks.c,v 1.2 1996/03/27 19:32:52 niklas Exp $";
+static char rcsid[] = "$OpenBSD: disks.c,v 1.3 1996/04/19 13:31:57 mickey Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -84,8 +84,6 @@ float *dk_mspw;
int dk_ndrive, *dk_select;
char **dr_name;
-#include "names.c" /* XXX */
-
int
dkinit()
{
@@ -128,12 +126,14 @@ dkinit()
if (dk_mspw[i] != 0.0)
dk_select[i] = 1;
}
+#if 0
if (!read_names()) {
free(dr_name);
free(dk_select);
free(dk_mspw);
return(0);
}
+#endif
once = 1;
return(1);
}
diff --git a/usr.bin/systat/swap.c b/usr.bin/systat/swap.c
index c548e973da2..75c9fc99a83 100644
--- a/usr.bin/systat/swap.c
+++ b/usr.bin/systat/swap.c
@@ -64,7 +64,7 @@ static char rcsid[] = "$NetBSD: swap.c,v 1.4 1995/08/31 22:20:19 jtc Exp $";
extern char *getbsize __P((int *headerlenp, long *blocksizep));
void showspace __P((char *header, int hlen, long blocksize));
-kvm_t *kd;
+extern kvm_t *kd;
struct nlist syms[] = {
{ "_swapmap" }, /* list of free swap areas */