diff options
Diffstat (limited to 'mdk-stage1/tools.c')
-rw-r--r-- | mdk-stage1/tools.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdk-stage1/tools.c b/mdk-stage1/tools.c index 2a5200aa7..245d9cda5 100644 --- a/mdk-stage1/tools.c +++ b/mdk-stage1/tools.c @@ -477,8 +477,9 @@ int kernel_version(void) char * floppy_device(void) { char ** names, ** models; + int fd; my_insmod("floppy", ANY_DRIVER_TYPE, NULL, 0); - int fd = open("/dev/fd0", O_RDONLY|O_NONBLOCK); + fd = open("/dev/fd0", O_RDONLY|O_NONBLOCK); if (fd != -1) { char drivtyp[17]; if (!ioctl(fd, FDGETDRVTYP, (void *)drivtyp)) { |