diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
commit | 89e64c631ec8dee41ec4de888548d36887b6ec98 (patch) | |
tree | 91fc3aee54e9b9cac7ec893ddf91cb944e3fc220 /svr-x11fwd.c | |
parent | 468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff) |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'svr-x11fwd.c')
-rw-r--r-- | svr-x11fwd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-x11fwd.c b/svr-x11fwd.c index 113be57..2aa57ef 100644 --- a/svr-x11fwd.c +++ b/svr-x11fwd.c @@ -40,7 +40,7 @@ static void x11accept(struct Listener* listener, int sock); static int bindport(int fd); -static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr); +static int send_msg_channel_open_x11(int fd, const struct sockaddr_in* addr); /* Check untrusted xauth strings for metacharacters */ /* Returns DROPBEAR_SUCCESS/DROPBEAR_FAILURE */ @@ -154,7 +154,7 @@ static void x11accept(struct Listener* listener, int sock) { /* This is called after switching to the user, and sets up the xauth * and environment variables. */ -void x11setauth(struct ChanSess *chansess) { +void x11setauth(const struct ChanSess *chansess) { char display[20]; /* space for "localhost:12345.123" */ FILE * authprog = NULL; @@ -220,7 +220,7 @@ static const struct ChanType chan_x11 = { }; -static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr) { +static int send_msg_channel_open_x11(int fd, const struct sockaddr_in* addr) { char* ipstring = NULL; |