aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2001-10-23 17:31:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2001-10-23 17:31:11 +0000
commitb718f11936a1eb213d665a76d49bad236f6b3095 (patch)
treed09b7e0a8f1db85ae665c925c50b65e9cb9b54eb /usr.sbin/sysinstall
parent2ce87d3448689ae986a3dc02969f161875fbec4a (diff)
downloadsrc-b718f11936a1eb213d665a76d49bad236f6b3095.tar.gz
src-b718f11936a1eb213d665a76d49bad236f6b3095.zip
Move the 'type' variable inside the block where it is actually used.
Notes
Notes: svn path=/head/; revision=85366
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r--usr.sbin/sysinstall/system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 7cbb12fe0425..983ec3d1f778 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/sysinstall/system.c
@@ -144,7 +144,7 @@ systemInitialize(int argc, char **argv)
/* Are we running as init? */
if (getpid() == 1) {
- int fd, type;
+ int fd;
RunningAsInit = 1;
setsid();
@@ -159,10 +159,10 @@ systemInitialize(int argc, char **argv)
* To make _sure_ we're on a VTY and don't have /dev/console switched
* away to a serial port or something, attempt to set the cursor appearance.
*/
- type = 0; /* normal */
if (OnVTY) {
- int fd2;
+ int fd2, type;
+ type = 0; /* normal */
if ((fd2 = open("/dev/console", O_RDWR)) != -1) {
if (ioctl(fd2, CONS_CURSORTYPE, &type) == -1) {
OnVTY = FALSE;