summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-29 09:42:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-29 10:12:49 +0100
commit626fe1669f7062e04db60ce7757d1c7d32842b3a (patch)
tree4e2174055ca2ba67c392010177bf8a401ba730a1 /hwpfilter
parentfc5cd8b5e916dcf97ada18ea7e8458bfd820f0b9 (diff)
redundant cast
Change-Id: Ib812a7cafabc4820946da67fb3f8896b6aad1461
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hgzip.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hgzip.cxx b/hwpfilter/source/hgzip.cxx
index fa11f6f45dbd..c1eee1377a34 100644
--- a/hwpfilter/source/hgzip.cxx
+++ b/hwpfilter/source/hgzip.cxx
@@ -90,7 +90,7 @@ gz_stream *gz_open(HStream & _stream)
errno = 0;
s->_inputstream = &_stream;
- return (gz_stream *) s;
+ return s;
}
@@ -156,7 +156,7 @@ local int destroy(gz_stream * s)
int gz_read(gz_stream * file, voidp buf, unsigned len)
{
//printf("@@ gz_read : len : %d\t",len);
- gz_stream *s = (gz_stream *) file;
+ gz_stream *s = file;
Bytef *start = static_cast<Bytef *>(buf); /* starting point for crc computation */
Byte *next_out; /* == stream.next_out but not forced far (for MSDOS) */
if (s == NULL)
@@ -242,7 +242,7 @@ int gz_flush(gz_stream * file, int flush)
{
uInt len;
bool done = false;
- gz_stream *s = (gz_stream *) file;
+ gz_stream *s = file;
if (s == NULL || s->mode != 'w')
return Z_STREAM_ERROR;
@@ -304,7 +304,7 @@ local uLong getLong(gz_stream * s)
int gz_close(gz_stream * file)
{
// int err;
- gz_stream *s = (gz_stream *) file;
+ gz_stream *s = file;
if (s == NULL)
return Z_STREAM_ERROR;