diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-22 11:49:26 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-03 14:44:11 +0200 |
commit | cdba4ead6764f8728ffcd2f4e67008185025a235 (patch) | |
tree | 62f69ec4b8926c0cb54657576e145a6982b84d28 /server/reds.c | |
parent | e17767e8927e724687b1529e9bc8ddbc927dbc8f (diff) | |
download | spice-cdba4ead6764f8728ffcd2f4e67008185025a235.tar.gz spice-cdba4ead6764f8728ffcd2f4e67008185025a235.tar.xz spice-cdba4ead6764f8728ffcd2f4e67008185025a235.zip |
remove void * arithmetic
With -Wpointer-arith, gcc complains about void pointer arithmetic.
This is not a big deal with gcc, but could be with other compilers,
so it's better to cast to char */uint8_t * before doing the
arithmetic on such pointers.
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/reds.c b/server/reds.c index 5927a69d..5fa50c14 100644 --- a/server/reds.c +++ b/server/reds.c @@ -1766,7 +1766,7 @@ static ssize_t reds_stream_sasl_write(RedsStream *s, const void *buf, size_t nby return -1; } -static ssize_t reds_stream_sasl_read(RedsStream *s, void *buf, size_t nbyte) +static ssize_t reds_stream_sasl_read(RedsStream *s, uint8_t *buf, size_t nbyte) { uint8_t encoded[4096]; const char *decoded; |