diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-10-11 21:34:20 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2012-10-11 21:34:20 +0000 |
commit | 798300fb0fa1a3439a2f06a1ce55c03d27d3ca8f (patch) | |
tree | 0c4d58ff79fad416adff763946fc5318b51afd19 | |
parent | 06ed8474f2bd096c807ccb2ae881e4784fe586dc (diff) |
- char * -> unsigned char *
spotted by clang, ok eric@ and chl@
-rw-r--r-- | usr.sbin/smtpd/compress_gzip.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/compress_gzip.c b/usr.sbin/smtpd/compress_gzip.c index bcdf7ead31d..2d3882680a7 100644 --- a/usr.sbin/smtpd/compress_gzip.c +++ b/usr.sbin/smtpd/compress_gzip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compress_gzip.c,v 1.4 2012/09/16 15:55:55 chl Exp $ */ +/* $OpenBSD: compress_gzip.c,v 1.5 2012/10/11 21:34:19 gilles Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@openbsd.org> @@ -127,9 +127,9 @@ compress_buffer_gzip(char *in, size_t inlen, char *out, size_t outlen) return 0; strm.avail_in = inlen; - strm.next_in = in; + strm.next_in = (unsigned char *)in; strm.avail_out = outlen; - strm.next_out = out; + strm.next_out = (unsigned char *)out; ret = deflate(&strm, Z_FINISH); if (ret != Z_STREAM_END) @@ -159,9 +159,9 @@ uncompress_buffer_gzip(char *in, size_t inlen, char *out, size_t outlen) return ret; strm.avail_in = inlen; - strm.next_in = in; + strm.next_in = (unsigned char *)in; strm.avail_out = outlen; - strm.next_out = out; + strm.next_out = (unsigned char *)out; ret = inflate(&strm, Z_FINISH); if (ret != Z_STREAM_END) |