summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tape.cc
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 /winsup/cygwin/fhandler_tape.cc
parentcbd871ad41f819cb6c0667a2886d6438ead47c61 (diff)
downloadcygnal-48199c0d39326f2c5046712989c144515936d569.tar.gz
cygnal-48199c0d39326f2c5046712989c144515936d569.tar.bz2
cygnal-48199c0d39326f2c5046712989c144515936d569.zip
* fhandler_tape.cc (mtinfo_drive::set_pos): Remove unneeded linebreak.
(mtinfo_drive::get_status): Drop using get_ll when it's not required.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index b9833ffaf..2b848303f 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)