]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Const-correctness in x11_setup_display.
authorSimon Tatham <anakin@pobox.com>
Tue, 5 May 2015 19:16:18 +0000 (20:16 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 5 May 2015 19:16:18 +0000 (20:16 +0100)
The 'display' parameter should have been a const char *. No call sites
affected.

ssh.h
x11fwd.c

diff --git a/ssh.h b/ssh.h
index a8e7131356fc5f5420db47d1f085e281aeaff450..1371828f8982594dcbc043c41034dc12280c4957 100644 (file)
--- a/ssh.h
+++ b/ssh.h
@@ -521,7 +521,7 @@ int x11_authcmp(void *av, void *bv); /* for putting X11FakeAuth in a tree234 */
  * authorisation protocol to use at the remote end. The local auth
  * details are looked up by calling platform_get_x11_auth.
  */
-extern struct X11Display *x11_setup_display(char *display, Conf *);
+extern struct X11Display *x11_setup_display(const char *display, Conf *);
 void x11_free_display(struct X11Display *disp);
 struct X11FakeAuth *x11_invent_fake_auth(tree234 *t, int authtype);
 void x11_free_fake_auth(struct X11FakeAuth *auth);
index 7ecb4cc27b42cc5c74ef928df3dee64fe69387fd..4a6d82704b7cdbccbed5a1dfcf964aaa2dda9cbd 100644 (file)
--- a/x11fwd.c
+++ b/x11fwd.c
@@ -190,7 +190,7 @@ int x11_authcmp(void *av, void *bv)
     }
 }
 
-struct X11Display *x11_setup_display(char *display, Conf *conf)
+struct X11Display *x11_setup_display(const char *display, Conf *conf)
 {
     struct X11Display *disp = snew(struct X11Display);
     char *localcopy;