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 /cli-chansession.c | |
parent | 468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff) |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index c2086f2..d190b20 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -38,8 +38,8 @@ static void cli_closechansess(struct Channel *channel); static int cli_initchansess(struct Channel *channel); static void cli_chansessreq(struct Channel *channel); -static void send_chansess_pty_req(struct Channel *channel); -static void send_chansess_shell_req(struct Channel *channel); +static void send_chansess_pty_req(const struct Channel *channel); +static void send_chansess_shell_req(const struct Channel *channel); static void cli_escape_handler(struct Channel *channel, unsigned char* buf, int *len); static int cli_init_netcat(struct Channel *channel); @@ -270,7 +270,7 @@ void cli_chansess_winchange() { cli_ses.winchange = 0; } -static void send_chansess_pty_req(struct Channel *channel) { +static void send_chansess_pty_req(const struct Channel *channel) { char* term = NULL; @@ -303,7 +303,7 @@ static void send_chansess_pty_req(struct Channel *channel) { TRACE(("leave send_chansess_pty_req")) } -static void send_chansess_shell_req(struct Channel *channel) { +static void send_chansess_shell_req(const struct Channel *channel) { char* reqtype = NULL; |