From: Pierre Ossman Date: Tue, 3 Mar 2015 15:45:02 +0000 (+0100) Subject: No need to force modifiable strings here X-Git-Tag: v1.4.90~33^2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f30811bfec03ea4c0fae70c55d8ec14cd71f029;p=tigervnc.git No need to force modifiable strings here --- 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);