summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDemi Marie Obenour <demi@invisiblethingslab.com>2021-08-28 12:25:05 -0400
committerDemi Marie Obenour <demiobenour@gmail.com>2022-10-16 01:55:30 -0400
commitc9513aac2d78808f63b83d71072c2c483b20162d (patch)
treebcb04b79a801e20d905c8eec6dbf3d0b6761b974
parent06e1ef43bbb8c84fc243fa6a53c81147a3a24273 (diff)
Fix a compiler warning
The warning is harmless but annoying. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
-rw-r--r--src/xcb_auth.c4
1 files 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