summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-12 08:37:59 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-11-12 08:37:59 +0000
commit3e61a4e2c0e229fa0bc76df53b074b08ba9b31ff (patch)
treeb9117e9e5389db8f185adea91ad24ab3610e8ad5
parentd98357435d9a59f31d6340e254e37a3237a150c9 (diff)
*mountroot protos is in systm.h now
-rw-r--r--usr.sbin/config/mkswap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/config/mkswap.c b/usr.sbin/config/mkswap.c
index 51a1aca0ace..57d58a6b19b 100644
--- a/usr.sbin/config/mkswap.c
+++ b/usr.sbin/config/mkswap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkswap.c,v 1.6 1996/11/10 07:57:25 downsj Exp $ */
+/* $OpenBSD: mkswap.c,v 1.7 1996/11/12 08:37:58 niklas Exp $ */
/* $NetBSD: mkswap.c,v 1.5 1996/08/31 20:58:27 mycroft Exp $ */
/*
@@ -99,7 +99,8 @@ mkoneswap(cf)
}
if (fputs("\
#include <sys/param.h>\n\
-#include <sys/conf.h>\n\n", fp) < 0)
+#include <sys/conf.h>\n\
+#include <sys/systm.h>\n\n", fp) < 0)
goto wrerror;
nv = cf->cf_root;
if (fprintf(fp, "dev_t\trootdev = %s;\t/* %s */\n",
@@ -119,8 +120,6 @@ mkoneswap(cf)
goto wrerror;
mountroot =
cf->cf_root->nv_str == s_nfs ? "nfs_mountroot" : "dk_mountroot";
- if (fprintf(fp, "extern int %s __P((void));\n", mountroot) < 0)
- goto wrerror;
if (fprintf(fp, "int (*mountroot) __P((void)) = %s;\n", mountroot) < 0)
goto wrerror;