mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48:00 +00:00
Const-correctness in x11_setup_display.
The 'display' parameter should have been a const char *. No call sites affected.
This commit is contained in:
parent
bcfcb169ef
commit
a53e4e2cb6
2
ssh.h
2
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
|
* authorisation protocol to use at the remote end. The local auth
|
||||||
* details are looked up by calling platform_get_x11_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);
|
void x11_free_display(struct X11Display *disp);
|
||||||
struct X11FakeAuth *x11_invent_fake_auth(tree234 *t, int authtype);
|
struct X11FakeAuth *x11_invent_fake_auth(tree234 *t, int authtype);
|
||||||
void x11_free_fake_auth(struct X11FakeAuth *auth);
|
void x11_free_fake_auth(struct X11FakeAuth *auth);
|
||||||
|
2
x11fwd.c
2
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);
|
struct X11Display *disp = snew(struct X11Display);
|
||||||
char *localcopy;
|
char *localcopy;
|
||||||
|
Loading…
Reference in New Issue
Block a user