summaryrefslogtreecommitdiff
path: root/src/compression
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 10:33:45 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-15 10:33:45 (GMT)
commit8126a2234530d95d1d3854b50335b88478a6b824 (patch)
tree2d08a9dfdfe8304422eeb6801cd1b3d3b9607877 /src/compression
parentcb40bb630ca469426962b4056750716cd43f478d (diff)
Fix some more compiler warnings
Diffstat (limited to 'src/compression')
-rw-r--r--src/compression/huffman.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compression/huffman.c b/src/compression/huffman.c
index 77660fc..b8926ac 100644
--- a/src/compression/huffman.c
+++ b/src/compression/huffman.c
@@ -60,7 +60,7 @@ static int comp_htree(const void *leafptr1, const void *leafptr2, const void *pr
const union htree_nodeleaf *leaf2=(union htree_nodeleaf *)leafptr2;
int rval=0;
(void)private;
-
+
if (leaf1->leaf.prob<leaf2->leaf.prob)
rval=1;
else if (leaf1->leaf.prob>leaf2->leaf.prob)
@@ -188,9 +188,8 @@ static int comp_codes(const void *codeptr1, const void *codeptr2, const void *pr
{
const struct codelength *code1=(struct codelength *)codeptr1;
const struct codelength *code2=(struct codelength *)codeptr2;
- (void)private;
-
int rval=0; /* It shouldn't be possible to get equal here, though. */
+ (void)private;
if (code1->length>code2->length)
rval=1;
else if (code1->length<code2->length)
contact: Jan Huwald // Impressum