[Xcb-commit] libxcb: src

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Oct 16 07:30:22 UTC 2022


 src/xcb_auth.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c9513aac2d78808f63b83d71072c2c483b20162d
Author: Demi Marie Obenour <demi at invisiblethingslab.com>
Date:   Sat Aug 28 12:25:05 2021 -0400

    Fix a compiler warning
    
    The warning is harmless but annoying.
    
    Signed-off-by: Demi Marie Obenour <demiobenour at gmail.com>

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


More information about the xcb-commit mailing list