comparison cli-chansession.c @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children 58a74cb829b8
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
36 #include "agentfwd.h" 36 #include "agentfwd.h"
37 37
38 static void cli_closechansess(struct Channel *channel); 38 static void cli_closechansess(struct Channel *channel);
39 static int cli_initchansess(struct Channel *channel); 39 static int cli_initchansess(struct Channel *channel);
40 static void cli_chansessreq(struct Channel *channel); 40 static void cli_chansessreq(struct Channel *channel);
41 static void send_chansess_pty_req(struct Channel *channel); 41 static void send_chansess_pty_req(const struct Channel *channel);
42 static void send_chansess_shell_req(struct Channel *channel); 42 static void send_chansess_shell_req(const struct Channel *channel);
43 static void cli_escape_handler(struct Channel *channel, unsigned char* buf, int *len); 43 static void cli_escape_handler(struct Channel *channel, unsigned char* buf, int *len);
44 static int cli_init_netcat(struct Channel *channel); 44 static int cli_init_netcat(struct Channel *channel);
45 45
46 static void cli_tty_setup(void); 46 static void cli_tty_setup(void);
47 47
268 } 268 }
269 } 269 }
270 cli_ses.winchange = 0; 270 cli_ses.winchange = 0;
271 } 271 }
272 272
273 static void send_chansess_pty_req(struct Channel *channel) { 273 static void send_chansess_pty_req(const struct Channel *channel) {
274 274
275 char* term = NULL; 275 char* term = NULL;
276 276
277 TRACE(("enter send_chansess_pty_req")) 277 TRACE(("enter send_chansess_pty_req"))
278 278
301 dropbear_exit("Signal error"); 301 dropbear_exit("Signal error");
302 } 302 }
303 TRACE(("leave send_chansess_pty_req")) 303 TRACE(("leave send_chansess_pty_req"))
304 } 304 }
305 305
306 static void send_chansess_shell_req(struct Channel *channel) { 306 static void send_chansess_shell_req(const struct Channel *channel) {
307 307
308 char* reqtype = NULL; 308 char* reqtype = NULL;
309 309
310 TRACE(("enter send_chansess_shell_req")) 310 TRACE(("enter send_chansess_shell_req"))
311 311