From bd7917b1a788dd1e644b54c9134b9d0c4ad241b2 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 14 May 1995 03:10:58 +0000 Subject: [PATCH] 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 --- usr.sbin/config/mkswapconf.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/usr.sbin/config/mkswapconf.c b/usr.sbin/config/mkswapconf.c index 002d85ef1854..94b5dce4d698 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);