aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-08-19 10:24:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2013-08-19 10:24:37 +0000
commit48199c0d39326f2c5046712989c144515936d569 (patch)
tree71c42c87899790d7aee18c5644d71c72931ac33c
parentcbd871ad41f819cb6c0667a2886d6438ead47c61 (diff)
downloadnewlib-48199c0d39326f2c5046712989c144515936d569.zip
newlib-48199c0d39326f2c5046712989c144515936d569.tar.gz
newlib-48199c0d39326f2c5046712989c144515936d569.tar.bz2
* fhandler_tape.cc (mtinfo_drive::set_pos): Remove unneeded linebreak.
(mtinfo_drive::get_status): Drop using get_ll when it's not required.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_tape.cc7
2 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5d0623c..b36039b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2013-08-19 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_tape.cc (mtinfo_drive::set_pos): Remove unneeded linebreak.
+ (mtinfo_drive::get_status): Drop using get_ll when it's not required.
+
2013-08-14 Corinna Vinschen <corinna@vinschen.de>
* include/sys/cygwin.h (struct per_process): Add posix_memalign. Reduce
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index b9833ff..2b84830 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -392,8 +392,7 @@ mtinfo_drive::_set_pos (HANDLE mt, int mode, int32_t count, int partition,
}
int
-mtinfo_drive::set_pos (HANDLE mt, int mode, int32_t count,
- bool sfm_func)
+mtinfo_drive::set_pos (HANDLE mt, int mode, int32_t count, bool sfm_func)
{
int err = 0;
int32_t undone = count;
@@ -819,8 +818,8 @@ mtinfo_drive::get_status (HANDLE mt, struct mtget *get)
if (mp ()->WriteProtected)
get->mt_gstat |= GMT_WR_PROT (-1);
- get->mt_capacity = get_ll (mp ()->Capacity);
- get->mt_remaining = get_ll (mp ()->Remaining);
+ get->mt_capacity = mp ()->Capacity.QuadPart;
+ get->mt_remaining = mp ()->Remaining.QuadPart;
}
if (notape)