From c9513aac2d78808f63b83d71072c2c483b20162d Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Sat, 28 Aug 2021 12:25:05 -0400 Subject: Fix a compiler warning The warning is harmless but annoying. Signed-off-by: Demi Marie Obenour --- src/xcb_auth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xcb_auth.c b/src/xcb_auth.c index 8ebe9a4..8c6e9b9 100644 --- a/src/xcb_auth.c +++ b/src/xcb_auth.c @@ -73,7 +73,7 @@ enum auth_protos { #define AUTH_PROTO_XDM_AUTHORIZATION "XDM-AUTHORIZATION-1" #define AUTH_PROTO_MIT_MAGIC_COOKIE "MIT-MAGIC-COOKIE-1" -static char *authnames[N_AUTH_PROTOS] = { +static const char *authnames[N_AUTH_PROTOS] = { #ifdef HASXDMAUTH AUTH_PROTO_XDM_AUTHORIZATION, #endif @@ -165,7 +165,7 @@ static Xauth *get_authptr(struct sockaddr *sockname, int display) return XauGetBestAuthByAddr (family, (unsigned short) addrlen, addr, (unsigned short) dispbuflen, dispbuf, - N_AUTH_PROTOS, authnames, authnameslen); + N_AUTH_PROTOS, (char **)authnames, authnameslen); } #ifdef HASXDMAUTH -- cgit v1.2.3