shithub: drawterm

Download patch

ref: 966e3f1dfee844a76b71567bdd7f2e02155df767
parent: eb4ce56d78288399f77202a348a240d102be6580
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Nov 21 14:55:13 EST 2017

devcons: remove /dev/swap

--- a/kern/devcons.c	Tue Nov 21 14:54:38 2017
+++ b/kern/devcons.c	Tue Nov 21 14:55:13 2017
@@ -310,7 +310,6 @@
 	Qreboot,
 	Qshowfile,
 	Qsnarf,
-	Qswap,
 	Qsysname,
 	Qsysstat,
 	Qtime,
@@ -342,7 +341,6 @@
 	"reboot",	{Qreboot},	0,		0664,
 	"showfile",	{Qshowfile},	0,	0220,
 	"snarf",	{Qsnarf},		0,		0666,
-	"swap",		{Qswap},	0,		0664,
 	"sysname",	{Qsysname},	0,		0664,
 	"sysstat",	{Qsysstat},	0,		0666,
 	"time",		{Qtime},	NUMSIZE+3*VLNUMSIZE,	0664,
@@ -598,9 +596,6 @@
 	case Qsysstat:
 		return 0;
 
-	case Qswap:
-		return 0;
-
 	case Qsysname:
 		if(sysname == nil)
 			return 0;
@@ -752,10 +747,6 @@
 
 	case Qsysstat:
 		n = 0;
-		break;
-
-	case Qswap:
-		error(Egreg);
 		break;
 
 	case Qsysname: