comparison cli-main.c @ 1460:58a74cb829b8

Pointer parameter could be declared as pointing to const (callback)
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 22:39:53 +0200
parents 2c9dac2d6707
children f7a53832501d
comparison
equal deleted inserted replaced
1459:06d52bcb8094 1460:58a74cb829b8
140 140
141 fprintf(stderr, "%s: %s\n", cli_opts.progname, printbuf); 141 fprintf(stderr, "%s: %s\n", cli_opts.progname, printbuf);
142 fflush(stderr); 142 fflush(stderr);
143 } 143 }
144 144
145 static void exec_proxy_cmd(void *user_data_cmd) { 145 static void exec_proxy_cmd(const void *user_data_cmd) {
146 const char *cmd = user_data_cmd; 146 const char *cmd = user_data_cmd;
147 char *usershell; 147 char *usershell;
148 148
149 usershell = m_strdup(get_user_shell()); 149 usershell = m_strdup(get_user_shell());
150 run_shell_command(cmd, ses.maxfd, usershell); 150 run_shell_command(cmd, ses.maxfd, usershell);