aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/qemu-xen-websocket.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/xen/qemu-xen-websocket.patch')
-rw-r--r--main/xen/qemu-xen-websocket.patch13
1 files changed, 11 insertions, 2 deletions
diff --git a/main/xen/qemu-xen-websocket.patch b/main/xen/qemu-xen-websocket.patch
index 02bb805dac..aa6446e86d 100644
--- a/main/xen/qemu-xen-websocket.patch
+++ b/main/xen/qemu-xen-websocket.patch
@@ -533,6 +533,15 @@
static void vnc_init_timer(VncDisplay *vd);
static void vnc_remove_timer(VncDisplay *vd);
+@@ -486,7 +485,7 @@
+ return buffer->offset == 0;
+ }
+
+-static uint8_t *buffer_end(Buffer *buffer)
++uint8_t *buffer_end(Buffer *buffer)
+ {
+ return buffer->buffer + buffer->offset;
+ }
@@ -510,6 +509,13 @@
buffer->offset += len;
}
@@ -837,10 +846,10 @@
+ if (vs->websocket) {
+ if (vs->ws_display) {
+ vs->lwebsock = inet_listen(vs->ws_display, NULL, 256,
-+ SOCK_STREAM, 0);
++ SOCK_STREAM, 0, errp);
+ } else {
+ vs->lwebsock = inet_listen(vs->display, NULL, 256,
-+ SOCK_STREAM, 5700);
++ SOCK_STREAM, 5700, errp);
+ }
+
+ if (vs->lwebsock < 0) {