Just use char ** for argv like normal people, not char *const *.

This commit is contained in:
nicm 2014-05-09 09:11:24 +00:00
parent 353d1825d5
commit f4ffaf5a7f
2 changed files with 2 additions and 2 deletions

2
cmd.c
View File

@ -180,7 +180,7 @@ cmd_unpack_argv(char *buf, size_t len, int argc, char ***argv)
}
char **
cmd_copy_argv(int argc, char *const *argv)
cmd_copy_argv(int argc, char **argv)
{
char **new_argv;
int i;

2
tmux.h
View File

@ -1738,7 +1738,7 @@ long long args_strtonum(
/* cmd.c */
int cmd_pack_argv(int, char **, char *, size_t);
int cmd_unpack_argv(char *, size_t, int, char ***);
char **cmd_copy_argv(int, char *const *);
char **cmd_copy_argv(int, char **);
void cmd_free_argv(int, char **);
struct cmd *cmd_parse(int, char **, const char *, u_int, char **);
size_t cmd_print(struct cmd *, char *, size_t);