From 48199c0d39326f2c5046712989c144515936d569 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 19 Aug 2013 10:24:37 +0000 Subject: * fhandler_tape.cc (mtinfo_drive::set_pos): Remove unneeded linebreak. (mtinfo_drive::get_status): Drop using get_ll when it's not required. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_tape.cc | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 5d0623c45..b36039bd1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2013-08-19 Corinna Vinschen + + * 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 * 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 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) -- cgit v1.2.3