Skip to content

Commit

Permalink
Don't use Zlib specific types.
Browse files Browse the repository at this point in the history
Ulong and Bytef are ZLIB specific and on platforms that don't have
zlib this gives compile errors.
  • Loading branch information
Marco van Wieringen committed May 5, 2013
1 parent 968099d commit 7056136
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filed/backup.h
Expand Up @@ -44,10 +44,10 @@ struct b_ctx {
/*
* Compression data.
*/
const Bytef *cbuf; /* Compression buffer */
Bytef *cbuf2; /* Compression buffer when using generic comp_stream_header */
const char *cbuf; /* Compression buffer */
char *cbuf2; /* Compression buffer when using generic comp_stream_header */
uint32_t compress_len; /* Actual length after compression */
uLong max_compress_len; /* Maximum size that will fit into compression buffer */
uint32_t max_compress_len; /* Maximum size that will fit into compression buffer */
comp_stream_header ch; /* Compression Stream Header with info about compression used */

/*
Expand Down

0 comments on commit 7056136

Please sign in to comment.