[Spice-devel] [PATCH spice-server 18/30] Use gboolean instead of bool for reds_stream_is_websocket
Frediano Ziglio
fziglio at redhat.com
Mon Nov 21 12:52:05 UTC 2016
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
More information about the Spice-devel
mailing list