From 61df108c655f703ef246edbafc0eb302018b31e2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 29 Jun 2004 08:02:10 +0000 Subject: variable declaration fixes (spotted by neofutur) --- mdk-stage1/tools.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/tools.c') 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)) { -- cgit v1.2.1