summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-02-10 18:20:33 +0000
committerChristos Zoulas <christos@zoulas.com>2017-02-10 18:20:33 +0000
commit8582888fbed7903eb41db4e1b4ad2ef7b70912fb (patch)
tree4bf8d81a2751e7a0e8b496842f4569c92bcd88aa
parent5e0901bdc7fdc4ce164ba5cea5df3f251e04cd6b (diff)
downloadfile-git-8582888fbed7903eb41db4e1b4ad2ef7b70912fb.tar.gz
fix cast
-rw-r--r--src/compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compress.c b/src/compress.c
index fce28507..a4815c22 100644
--- a/src/compress.c
+++ b/src/compress.c
@@ -35,7 +35,7 @@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: compress.c,v 1.102 2017/02/10 18:14:01 christos Exp $")
+FILE_RCSID("@(#)$File: compress.c,v 1.103 2017/02/10 18:20:33 christos Exp $")
#endif
#include "magic.h"
@@ -94,7 +94,7 @@ static int
zlibcmp(const unsigned char *buf)
{
unsigned short x = 1;
- unsigned char *s = CCAST(unsigned char *, &x);
+ unsigned char *s = CAST(unsigned char *, CAST(void *, &x));
if ((buf[0] & 0xf) != 8 || (buf[0] & 0x80) != 0)
return 0;