diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
commit | 598056d1686127285c389cacbdd20707c350d05a (patch) | |
tree | d821ca44d56c707bd3e6fe35f5cb58ff6eb1ccda /svr-chansession.c | |
parent | 89e64c631ec8dee41ec4de888548d36887b6ec98 (diff) |
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index ff94cf2..0e34350 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -47,10 +47,10 @@ static int sessionsignal(const struct ChanSess *chansess); static int noptycommand(struct Channel *channel, struct ChanSess *chansess); static int ptycommand(struct Channel *channel, struct ChanSess *chansess); static int sessionwinchange(const struct ChanSess *chansess); -static void execchild(void *user_data_chansess); +static void execchild(const void *user_data_chansess); static void addchildpid(struct ChanSess *chansess, pid_t pid); static void sesssigchild_handler(int val); -static void closechansess(struct Channel *channel); +static void closechansess(const struct Channel *channel); static int newchansess(struct Channel *channel); static void chansessionrequest(struct Channel *channel); static int sesscheckclose(const struct Channel *channel); @@ -281,7 +281,7 @@ chansess_login_alloc(const struct ChanSess *chansess) { } /* clean a session channel */ -static void closechansess(struct Channel *channel) { +static void closechansess(const struct Channel *channel) { struct ChanSess *chansess; unsigned int i; @@ -898,7 +898,7 @@ static void addchildpid(struct ChanSess *chansess, pid_t pid) { /* Clean up, drop to user privileges, set up the environment and execute * the command/shell. This function does not return. */ -static void execchild(void *user_data) { +static void execchild(const void *user_data) { struct ChanSess *chansess = user_data; char *usershell = NULL; |