diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:04:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-28 19:09:21 +0100 |
commit | 33815ec44937f731ce3de9146a97265662d0d206 (patch) | |
tree | 40257290d306f43f9e5bb521c9ac9344a11cfd88 /hwpfilter/source/hgzip.cxx | |
parent | 5d950b3afd91e87035d24b550f29d0b3a7c5033b (diff) |
Clean up C-style casts from pointers to void
Change-Id: Ifbdbd2bb8a21afa76271728c46f88c11a887fc5a
Diffstat (limited to 'hwpfilter/source/hgzip.cxx')
-rw-r--r-- | hwpfilter/source/hgzip.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hgzip.cxx b/hwpfilter/source/hgzip.cxx index 6b7e0b973e8e..fa11f6f45dbd 100644 --- a/hwpfilter/source/hgzip.cxx +++ b/hwpfilter/source/hgzip.cxx @@ -58,7 +58,7 @@ gz_stream *gz_open(HStream & _stream) //char *m = fmode; gz_stream *s; - s = (gz_stream *) ALLOC(sizeof(gz_stream)); + s = static_cast<gz_stream *>(ALLOC(sizeof(gz_stream))); if (!s) return Z_NULL; s->stream.zalloc = (alloc_func) 0; @@ -78,7 +78,7 @@ gz_stream *gz_open(HStream & _stream) //realking err = inflateInit2(&(s->stream), -MAX_WBITS); - s->stream.next_in = s->inbuf = (Byte *) ALLOC(Z_BUFSIZE); + s->stream.next_in = s->inbuf = static_cast<Byte *>(ALLOC(Z_BUFSIZE)); if (err != Z_OK || s->inbuf == Z_NULL) { @@ -157,7 +157,7 @@ int gz_read(gz_stream * file, voidp buf, unsigned len) { //printf("@@ gz_read : len : %d\t",len); gz_stream *s = (gz_stream *) file; - Bytef *start = (Bytef *) buf; /* starting point for crc computation */ + 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) return Z_STREAM_ERROR; @@ -167,7 +167,7 @@ int gz_read(gz_stream * file, voidp buf, unsigned len) if (s->z_err == Z_STREAM_END) return 0; /* EOF */ - s->stream.next_out = next_out = (Bytef *) buf; + s->stream.next_out = next_out = static_cast<Bytef *>(buf); s->stream.avail_out = len; while (s->stream.avail_out != 0) |