summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorchmr <chmr@FreeBSD.org>1993-11-23 18:20:52 +0000
committerchmr <chmr@FreeBSD.org>1993-11-23 18:20:52 +0000
commit5bd904102052d9a104f2bb115014f943823026ac (patch)
tree4b931879c0cd1f58ff0c42b175deab569fe450cb /sys
parent73aab54861562732849f54dfc74fa04f33ea570f (diff)
downloadFreeBSD-src-5bd904102052d9a104f2bb115014f943823026ac.zip
FreeBSD-src-5bd904102052d9a104f2bb115014f943823026ac.tar.gz
Changed return(-1) in switch_scr to return(EINVAL), because -1 is
ERESTART on return from a system call.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/syscons/syscons.c4
-rw-r--r--sys/i386/isa/syscons.c4
-rw-r--r--sys/isa/syscons.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 4e56cfc..fa07917 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -35,7 +35,7 @@
*
* from: @(#)pccons.c 5.11 (Berkeley) 5/21/91
* from: @(#)syscons.c 1.1 931021
- * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $
+ * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $
*
* Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide:
*
@@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr)
switch_in_progress = 0;
if (next_scr >= NCONS || switch_in_progress) {
sysbeep(BELL_PITCH, BELL_DURATION);
- return -1;
+ return EINVAL;
}
switch_in_progress = 1;
old_scp = cur_console;
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index 4e56cfc..fa07917 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -35,7 +35,7 @@
*
* from: @(#)pccons.c 5.11 (Berkeley) 5/21/91
* from: @(#)syscons.c 1.1 931021
- * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $
+ * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $
*
* Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide:
*
@@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr)
switch_in_progress = 0;
if (next_scr >= NCONS || switch_in_progress) {
sysbeep(BELL_PITCH, BELL_DURATION);
- return -1;
+ return EINVAL;
}
switch_in_progress = 1;
old_scp = cur_console;
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index 4e56cfc..fa07917 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -35,7 +35,7 @@
*
* from: @(#)pccons.c 5.11 (Berkeley) 5/21/91
* from: @(#)syscons.c 1.1 931021
- * $Id: syscons.c,v 1.17 1993/10/31 00:09:02 jkh Exp $
+ * $Id: syscons.c,v 1.18 1993/10/31 00:19:01 jkh Exp $
*
* Heavily modified by Søren Schmidt (sos@login.dkuug.dk) to provide:
*
@@ -1303,7 +1303,7 @@ static switch_scr(u_int next_scr)
switch_in_progress = 0;
if (next_scr >= NCONS || switch_in_progress) {
sysbeep(BELL_PITCH, BELL_DURATION);
- return -1;
+ return EINVAL;
}
switch_in_progress = 1;
old_scp = cur_console;
OpenPOWER on IntegriCloud