From 07c16c7ed83dc7716ebe8cff20e702702ca069f2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 24 Apr 2020 20:14:50 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libaxl.h | 2 +- libaxl_receive_handshake.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libaxl.h b/libaxl.h index 7ecc19d..0d2abdd 100644 --- a/libaxl.h +++ b/libaxl.h @@ -273,7 +273,7 @@ int libaxl_parse_display(const char *, char **, char **, int *, int *); /* TODO * @param display The display's number, the function will assume that it is a valid number * @return The TCP port used for the display */ -_LIBAXL_GCC_ONLY(__attribute__((__warn_unused_result__))) +_LIBAXL_GCC_ONLY(__attribute__((__warn_unused_result__, __const__))) inline uint16_t libaxl_get_tcp_port(int display) /* TODO man */ { return (uint16_t)(display + 6000); diff --git a/libaxl_receive_handshake.c b/libaxl_receive_handshake.c index 036a10a..5323344 100644 --- a/libaxl_receive_handshake.c +++ b/libaxl_receive_handshake.c @@ -194,7 +194,7 @@ continue_read: conn->info.vendor = inbuf; conn->info.formats = (void *)&inbuf[t]; conn->info.screens = (void *)&inbuf[t + conn->info.nformats * 8]; - conn->info.default_screens = conn->info.screens; + conn->info.default_screen = conn->info.screens; ctx->in_buf_size = 0; ctx->in_buf = NULL; -- cgit v1.2.3-70-g09d2