aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_floppy.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-03-11 13:23:55 +0100
committerCorinna Vinschen <corinna@vinschen.de>2020-03-11 13:45:58 +0100
commitd2ef2331f9ec4cc6510cab5cd540bb3c3c863ca8 (patch)
tree2ec6acd02a3e5f26b334c92d7d4b702cfda4738e /winsup/cygwin/fhandler_floppy.cc
parent256bc8bde00071b42dad4caf23ddda037d34c5fd (diff)
downloadnewlib-d2ef2331f9ec4cc6510cab5cd540bb3c3c863ca8.zip
newlib-d2ef2331f9ec4cc6510cab5cd540bb3c3c863ca8.tar.gz
newlib-d2ef2331f9ec4cc6510cab5cd540bb3c3c863ca8.tar.bz2
Cygwin: fix formatting: drop spaces leading tabs
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fhandler_floppy.cc')
-rw-r--r--winsup/cygwin/fhandler_floppy.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_floppy.cc b/winsup/cygwin/fhandler_floppy.cc
index 43139ac..8fb1872 100644
--- a/winsup/cygwin/fhandler_floppy.cc
+++ b/winsup/cygwin/fhandler_floppy.cc
@@ -546,11 +546,11 @@ fhandler_dev_floppy::raw_write (const void *ptr, size_t len)
DWORD cplen, written;
/* First check if we have an active read buffer. If so, try to fit in
- the start of the input buffer and write out the entire result.
+ the start of the input buffer and write out the entire result.
This also covers the situation after lseek since lseek fills the read
buffer in case we seek to an address which is not sector aligned. */
if (devbufend && devbufstart < devbufend)
- {
+ {
off_t current_pos = get_current_position ();
cplen = MIN (len, devbufend - devbufstart);
memcpy (devbuf + devbufstart, p, cplen);
@@ -657,7 +657,7 @@ fhandler_dev_floppy::lseek (off_t offset, int whence)
off_t exact_pos = current_pos - (devbufend - devbufstart);
/* Shortcut when used to get current position. */
if (offset == 0)
- return exact_pos;
+ return exact_pos;
offset += exact_pos;
whence = SEEK_SET;
}