summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-10 16:48:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-10 16:48:42 +0000
commitee0edd4a71c034c6c09cb49456f99493f20666ad (patch)
tree9c4a0e6f8c1af32cca6fba67419f6834ea1d9fec /sys
parente2401e4acf3dd81e63e3fac75bf8419265182ebb (diff)
allow -d option to work with -c [change screen]
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/isa/pcvt/Util/scon/scon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pcvt/Util/scon/scon.c b/sys/arch/i386/isa/pcvt/Util/scon/scon.c
index 91732a8f672..6df718cfdda 100644
--- a/sys/arch/i386/isa/pcvt/Util/scon/scon.c
+++ b/sys/arch/i386/isa/pcvt/Util/scon/scon.c
@@ -461,7 +461,7 @@ char *argv[];
if(vflag)
printf("processing option -c, setting current screen to %d\n",current);
- if(ioctl(1, VGASETSCREEN, &screeninfo) == -1)
+ if(ioctl(fd, VGASETSCREEN, &screeninfo) == -1)
{
perror("ioctl VGASETSCREEN failed");
exit(1);