More common in the code and in line with TRUE/FALSE usage. --- server/reds-stream.c | 2 +- server/reds-stream.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/reds-stream.c b/server/reds-stream.c index 5c8bb80..4dd6167 100644 --- a/server/reds-stream.c +++ b/server/reds-stream.c @@ -1159,7 +1159,7 @@ static ssize_t stream_websocket_writev(RedsStream *s, const struct iovec *iov, i that will speak WebSocket to the client, but allow the server to continue to use normal stream read/write/writev semantics. */ -bool reds_stream_is_websocket(RedsStream *stream, unsigned char *buf, int len) +gboolean reds_stream_is_websocket(RedsStream *stream, const void *buf, size_t len) { char rbuf[4096]; int rc; diff --git a/server/reds-stream.h b/server/reds-stream.h index 3959a27..6dceeb6 100644 --- a/server/reds-stream.h +++ b/server/reds-stream.h @@ -76,7 +76,7 @@ int reds_stream_get_family(const RedsStream *stream); int reds_stream_is_plain_unix(const RedsStream *stream); int reds_stream_send_msgfd(RedsStream *stream, int fd); -bool reds_stream_is_websocket(RedsStream *stream, unsigned char *buf, int len); +gboolean reds_stream_is_websocket(RedsStream *stream, const void *buf, size_t len); typedef enum { REDS_SASL_ERROR_OK, -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel