summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-14 03:10:58 +0000
committerdg <dg@FreeBSD.org>1995-05-14 03:10:58 +0000
commitcad5d541a0235437f78eaf82d0e8b9b7cb3ded56 (patch)
treecba7e4a5d1dc72e72ab8563dfdffe72ee7017896 /usr.sbin/config
parent05c46323f6173c1eb8c1ce21e9e6f492ee272de5 (diff)
downloadFreeBSD-src-cad5d541a0235437f78eaf82d0e8b9b7cb3ded56.zip
FreeBSD-src-cad5d541a0235437f78eaf82d0e8b9b7cb3ded56.tar.gz
Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it is now dynamic. Reviewed by: John Dyson and David Greenman Submitted by: Poul-Henning Kamp
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkswapconf.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/usr.sbin/config/mkswapconf.c b/usr.sbin/config/mkswapconf.c
index 002d85e..94b5dce 100644
--- a/usr.sbin/config/mkswapconf.c
+++ b/usr.sbin/config/mkswapconf.c
@@ -105,18 +105,6 @@ do_swap(fl)
fprintf(fp, "dev_t\tdumpdev = NODEV;\t\t\t/* unconfigured */\n");
}
fprintf(fp, "\n");
- fprintf(fp, "struct\tswdevt swdevt[] = {\n");
- do {
- dev = swap->f_swapdev;
- fprintf(fp, "\t{ makedev(%d, 0x%08x),\t%d,\t%d },\t/* %s */\n",
- major(dev), minor(dev), swap->f_swapflag,
- swap->f_swapsize, swap->f_fn);
- swap = swap->f_next;
- } while (swap && swap->f_type == SWAPSPEC);
- fprintf(fp, "\t{ NODEV, 0, 0 },\t/* for NFS diskless */\n");
- fprintf(fp, "\t{ NODEV, 0, 0 }\n");
- fprintf(fp, "};\n\n");
- fprintf(fp, "/* Stub for when generic swap config is not used. */\n");
fprintf(fp, "void\nsetconf()\n{\n}\n");
fclose(fp);
return (swap);
OpenPOWER on IntegriCloud