diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-05-07 05:55:06 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-05-07 05:55:06 +0000 |
commit | 10b2208d9386972b76f10c2557562b5912dd130e (patch) | |
tree | 007a393aff385b1cbe47ffdc4d377edb5dac9898 /src/common/torgzip.c | |
parent | 6567ec9ccf108ac2b51da77fff5e00b722640765 (diff) | |
download | tor-10b2208d9386972b76f10c2557562b5912dd130e.tar.gz tor-10b2208d9386972b76f10c2557562b5912dd130e.zip |
Make Tor compile with no warnings with gcc4.0 on OSX
svn:r4184
Diffstat (limited to 'src/common/torgzip.c')
-rw-r--r-- | src/common/torgzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c index 23d5dd5a58..2fdcd453fe 100644 --- a/src/common/torgzip.c +++ b/src/common/torgzip.c @@ -94,7 +94,7 @@ tor_gzip_compress(char **out, size_t *out_len, out_size = in_len / 2; if (out_size < 1024) out_size = 1024; *out = tor_malloc(out_size); - stream->next_out = *out; + stream->next_out = (unsigned char*)*out; stream->avail_out = out_size; while (1) { @@ -110,7 +110,7 @@ tor_gzip_compress(char **out, size_t *out_len, offset = stream->next_out - ((unsigned char*)*out); out_size *= 2; *out = tor_realloc(*out, out_size); - stream->next_out = *out + offset; + stream->next_out = (unsigned char*)(*out + offset); stream->avail_out = out_size - offset; break; default: @@ -179,7 +179,7 @@ tor_gzip_uncompress(char **out, size_t *out_len, if (out_size < 1024) out_size = 1024; *out = tor_malloc(out_size); - stream->next_out = *out; + stream->next_out = (unsigned char*)*out; stream->avail_out = out_size; while (1) { @@ -195,7 +195,7 @@ tor_gzip_uncompress(char **out, size_t *out_len, offset = stream->next_out - ((unsigned char*)*out); out_size *= 2; *out = tor_realloc(*out, out_size); - stream->next_out = *out + offset; + stream->next_out = (unsigned char*)(*out + offset); stream->avail_out = out_size - offset; break; default: |