Navigation Menu

Skip to content

Commit

Permalink
Fix compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 5, 2013
1 parent 536c96a commit 9edc6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
10 changes: 2 additions & 8 deletions src/filed/compression.c
Expand Up @@ -370,12 +370,9 @@ bool setup_compression_context(b_ctx &bctx)
zfast_stream *pZfastStream = (zfast_stream *)bctx.jcr->pZfast_compress_workset;
if (pZfastStream->total_in == 0) {
int zstat;
zfast_stream_compressor compressor;
zfast_stream_compressor compressor = COMPRESSOR_FASTLZ;

switch (bctx.ff_pkt->Compress_algo) {
case COMPRESS_FZFZ:
compressor = COMPRESSOR_FASTLZ;
break;
case COMPRESS_FZ4L:
case COMPRESS_FZ4H:
compressor = COMPRESSOR_LZ4;
Expand Down Expand Up @@ -661,13 +658,10 @@ static bool decompress_with_fastlz(JCR *jcr, char **data, uint32_t *length, uint
{
int zstat;
zfast_stream stream;
zfast_stream_compressor compressor;
zfast_stream_compressor compressor = COMPRESSOR_FASTLZ;
char ec1[50]; /* Buffer printing huge values */

switch (comp_magic) {
case COMPRESS_FZFZ:
compressor = COMPRESSOR_FASTLZ;
break;
case COMPRESS_FZ4L:
case COMPRESS_FZ4H:
compressor = COMPRESSOR_LZ4;
Expand Down
5 changes: 1 addition & 4 deletions src/stored/bextract.c
Expand Up @@ -445,12 +445,9 @@ static bool decompress_with_fastlz(DEV_RECORD *rec, uint32_t comp_magic)
{
int zstat;
zfast_stream stream;
zfast_stream_compressor compressor;
zfast_stream_compressor compressor = COMPRESSOR_FASTLZ;

switch (comp_magic) {
case COMPRESS_FZFZ:
compressor = COMPRESSOR_FASTLZ;
break;
case COMPRESS_FZ4L:
case COMPRESS_FZ4H:
compressor = COMPRESSOR_LZ4;
Expand Down

0 comments on commit 9edc6e0

Please sign in to comment.