It's used only in websocket.c. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/websocket.c | 4 +++- server/websocket.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/websocket.c b/server/websocket.c index b0ea867e6..1b18aa614 100644 --- a/server/websocket.c +++ b/server/websocket.c @@ -63,6 +63,8 @@ #define WEBSOCKET_GUID "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" +static void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb); + /* Perform a case insensitive search for needle in haystack. If found, return a pointer to the byte after the end of needle. Otherwise, return NULL */ @@ -441,7 +443,7 @@ int websocket_write(RedsWebSocket *ws, const void *buf, size_t len) return rc; } -void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb) +static void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb) { unsigned char header[2]; diff --git a/server/websocket.h b/server/websocket.h index e3a610006..173109050 100644 --- a/server/websocket.h +++ b/server/websocket.h @@ -48,7 +48,6 @@ typedef struct { bool websocket_is_start(char *buf); void websocket_create_reply(char *buf, char *outbuf); -void websocket_ack_close(void *opaque, websocket_write_cb_t write_cb); int websocket_read(RedsWebSocket *ws, uint8_t *buf, size_t len); int websocket_write(RedsWebSocket *ws, const void *buf, size_t len); int websocket_writev(RedsWebSocket *ws, const struct iovec *iov, int iovcnt); -- 2.20.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel