From 8f30811bfec03ea4c0fae70c55d8ec14cd71f029 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 3 Mar 2015 16:45:02 +0100 Subject: [PATCH] No need to force modifiable strings here --- unix/vncconfig/vncExt.c | 2 +- unix/vncconfig/vncExt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/vncconfig/vncExt.c b/unix/vncconfig/vncExt.c index eef7c4b5..ff6b4d65 100644 --- a/unix/vncconfig/vncExt.c +++ b/unix/vncconfig/vncExt.c @@ -278,7 +278,7 @@ Bool XVncExtSelectInput(Display* dpy, Window w, int mask) return True; } -Bool XVncExtConnect(Display* dpy, char* hostAndPort) +Bool XVncExtConnect(Display* dpy, const char* hostAndPort) { xVncExtConnectReq* req; xVncExtConnectReply rep; diff --git a/unix/vncconfig/vncExt.h b/unix/vncconfig/vncExt.h index f1502c41..e41e2e5b 100644 --- a/unix/vncconfig/vncExt.h +++ b/unix/vncconfig/vncExt.h @@ -54,7 +54,7 @@ void XVncExtFreeParamList(char** list); Bool XVncExtSetServerCutText(Display* dpy, const char* str, int len); Bool XVncExtGetClientCutText(Display* dpy, char** str, int* len); Bool XVncExtSelectInput(Display* dpy, Window w, int mask); -Bool XVncExtConnect(Display* dpy, char* hostAndPort); +Bool XVncExtConnect(Display* dpy, const char* hostAndPort); Bool XVncExtGetQueryConnect(Display* dpy, char** addr, char** user, int* timeout, void** opaqueId); Bool XVncExtApproveConnect(Display* dpy, void* opaqueId, int approve); -- 2.39.5