diff options
author | Christopher Faylor <me@cgf.cx> | 2006-05-28 15:50:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-05-28 15:50:14 +0000 |
commit | 34f5d0879c2122899bb24c40691f06a8388ac623 (patch) | |
tree | 67d7d29711bde7049cb0cdc5e5fa68079c5de371 /winsup/cygwin/fhandler_floppy.cc | |
parent | 29d1e62ed2b11f99c3169d65608478941c5c7cc4 (diff) | |
download | newlib-34f5d0879c2122899bb24c40691f06a8388ac623.zip newlib-34f5d0879c2122899bb24c40691f06a8388ac623.tar.gz newlib-34f5d0879c2122899bb24c40691f06a8388ac623.tar.bz2 |
white space
Diffstat (limited to 'winsup/cygwin/fhandler_floppy.cc')
-rw-r--r-- | winsup/cygwin/fhandler_floppy.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc index 3fa7f71..9667235 100644 --- a/winsup/cygwin/fhandler_floppy.cc +++ b/winsup/cygwin/fhandler_floppy.cc @@ -87,17 +87,17 @@ fhandler_dev_floppy::get_drive_info (struct hd_geometry *geo) if (!di) { /* Up to Win2K, even IOCTL_DISK_GET_DRIVE_GEOMETRY fails when trying - it on CD or DVD drives. In that case fall back to requesting + it on CD or DVD drives. In that case fall back to requesting simple file system information. */ NTSTATUS status; IO_STATUS_BLOCK io; FILE_FS_SIZE_INFORMATION ffsi; - + status = NtQueryVolumeInformationFile (get_handle (), &io, &ffsi, sizeof ffsi, FileFsSizeInformation); if (!NT_SUCCESS (status)) - { + { __seterrno_from_nt_status (status); return -1; } @@ -108,9 +108,9 @@ fhandler_dev_floppy::get_drive_info (struct hd_geometry *geo) bytes_per_sector = ffsi.BytesPerSector; drive_size = ffsi.TotalAllocationUnits.QuadPart * ffsi.SectorsPerAllocationUnit - * ffsi.BytesPerSector; + * ffsi.BytesPerSector; if (geo) - { + { geo->heads = 1; geo->sectors = ffsi.SectorsPerAllocationUnit; geo->cylinders = ffsi.TotalAllocationUnits.LowPart; @@ -163,7 +163,7 @@ fhandler_dev_floppy::get_drive_info (struct hd_geometry *geo) } } debug_printf ("drive size: %D", drive_size); - + return 0; } |