diff options
author | Olivier Blin <oblin@mandriva.org> | 2004-06-29 08:02:10 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2004-06-29 08:02:10 +0000 |
commit | 61df108c655f703ef246edbafc0eb302018b31e2 (patch) | |
tree | 013f041afdaafd434d13215c0fce1d4f7300f3ce /mdk-stage1/tools.c | |
parent | 76ed625f39c906ccb82f2e509c717ee573996af5 (diff) | |
download | drakx-61df108c655f703ef246edbafc0eb302018b31e2.tar drakx-61df108c655f703ef246edbafc0eb302018b31e2.tar.gz drakx-61df108c655f703ef246edbafc0eb302018b31e2.tar.bz2 drakx-61df108c655f703ef246edbafc0eb302018b31e2.tar.xz drakx-61df108c655f703ef246edbafc0eb302018b31e2.zip |
variable declaration fixes (spotted by neofutur)
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)) { |