diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -242,6 +242,7 @@ static void console_init() | |||
242 | int fd; | 242 | int fd; |
243 | int tried_devcons = 0; | 243 | int tried_devcons = 0; |
244 | int tried_vtprimary = 0; | 244 | int tried_vtprimary = 0; |
245 | struct vt_stat vt; | ||
245 | struct serial_struct sr; | 246 | struct serial_struct sr; |
246 | char *s; | 247 | char *s; |
247 | 248 | ||
@@ -264,8 +265,6 @@ static void console_init() | |||
264 | } | 265 | } |
265 | #endif | 266 | #endif |
266 | else { | 267 | else { |
267 | struct vt_stat vt; | ||
268 | |||
269 | /* 2.2 kernels: identify the real console backend and try to use it */ | 268 | /* 2.2 kernels: identify the real console backend and try to use it */ |
270 | if (ioctl(0, TIOCGSERIAL, &sr) == 0) { | 269 | if (ioctl(0, TIOCGSERIAL, &sr) == 0) { |
271 | /* this is a serial console */ | 270 | /* this is a serial console */ |
@@ -951,3 +950,11 @@ extern int init_main(int argc, char **argv) | |||
951 | sleep(1); | 950 | sleep(1); |
952 | } | 951 | } |
953 | } | 952 | } |
953 | |||
954 | /* | ||
955 | Local Variables: | ||
956 | c-file-style: "linux" | ||
957 | c-basic-offset: 4 | ||
958 | tab-width: 4 | ||
959 | End: | ||
960 | */ | ||