diff options
author | Christian Federmann <cfedermann@dfki.de> | 2012-05-11 10:41:55 +0400 |
---|---|---|
committer | Christian Federmann <cfedermann@dfki.de> | 2012-05-11 10:41:55 +0400 |
commit | 1b666bdf014b47ce6e4a732ea1549d3f6506656e (patch) | |
tree | f4a58cf119e7aec556bedb4366c0686df39776d0 /util | |
parent | c7f18473aa5a43064ea23f6f9348bd73422a2688 (diff) |
Rolled back unnecessary gzFile casts.
Diffstat (limited to 'util')
-rw-r--r-- | util/file_piece.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/file_piece.cc b/util/file_piece.cc index f1186f94d..169d5205c 100644 --- a/util/file_piece.cc +++ b/util/file_piece.cc @@ -27,7 +27,7 @@ ParseNumberException::ParseNumberException(StringPiece value) throw() { #ifdef HAVE_ZLIB GZException::GZException(gzFile file) { int num; - *this << gzerror((gzFile)file, &num) << " from zlib"; + *this << gzerror(file, &num) << " from zlib"; } #endif // HAVE_ZLIB @@ -52,7 +52,7 @@ FilePiece::~FilePiece() { // zlib took ownership file_.release(); int ret; - if (Z_OK != (ret = gzclose((gzFile)gz_file_))) { + if (Z_OK != (ret = gzclose(gz_file_))) { std::cerr << "could not close file " << file_name_ << " using zlib" << std::endl; abort(); } @@ -291,7 +291,7 @@ void FilePiece::ReadShift() { ssize_t read_return; #ifdef HAVE_ZLIB - read_return = gzread((gzFile)gz_file_, static_cast<char*>(data_.get()) + already_read, default_map_size_ - already_read); + read_return = gzread(gz_file_, static_cast<char*>(data_.get()) + already_read, default_map_size_ - already_read); if (read_return == -1) throw GZException(gz_file_); if (total_size_ != kBadSize) { // Just get the position, don't actually seek. Apparently this is how you do it. . . |