* fhandler_floppy.cc (fhandler_floppy::lseek): Remove iswinnt check.

This commit is contained in:
Corinna Vinschen 2001-09-05 10:14:15 +00:00
parent 669153e144
commit 37c23731c7
2 changed files with 37 additions and 36 deletions

View File

@ -1,3 +1,7 @@
Wed Sep 5 12:12:00 2001 Corinna Vinschen <corinna@vinschen.de>
* fhandler_floppy.cc (fhandler_floppy::lseek): Remove iswinnt check.
Wed Sep 5 11:34:00 2001 Corinna Vinschen <corinna@vinschen.de> Wed Sep 5 11:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value * fhandler_socket.cc (fhandler_socket::close): Change 2MSL value

View File

@ -91,8 +91,6 @@ fhandler_dev_floppy::lseek (off_t offset, int whence)
DWORD low; DWORD low;
LONG high = 0; LONG high = 0;
if (iswinnt)
{
DISK_GEOMETRY di; DISK_GEOMETRY di;
PARTITION_INFORMATION pi; PARTITION_INFORMATION pi;
DWORD bytes_read; DWORD bytes_read;
@ -128,7 +126,6 @@ fhandler_dev_floppy::lseek (off_t offset, int whence)
di.SectorsPerTrack * di.BytesPerSector; di.SectorsPerTrack * di.BytesPerSector;
} }
debug_printf ("drive size: %ld", drive_size); debug_printf ("drive size: %ld", drive_size);
}
if (whence == SEEK_END && drive_size > 0) if (whence == SEEK_END && drive_size > 0)
{ {