summaryrefslogtreecommitdiff
path: root/examples/gzlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gzlog.c')
-rw-r--r--examples/gzlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gzlog.c b/examples/gzlog.c
index f71f817..b6acdef 100644
--- a/examples/gzlog.c
+++ b/examples/gzlog.c
@@ -241,7 +241,7 @@ int gzlog_write(void *obj, char *data, size_t len)
some = len;
if (write(log->fd, data, some) != some)
return 1;
- log->crc = crc32(log->crc, data, some);
+ log->crc = crc32(log->crc, (unsigned char *)data, some);
log->len += some;
len -= some;
data += some;