mirror of
https://github.com/tmux/tmux.git
synced 2024-12-12 17:38:48 +00:00
Just use char ** for argv like normal people, not char *const *.
This commit is contained in:
parent
353d1825d5
commit
f4ffaf5a7f
2
cmd.c
2
cmd.c
@ -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
2
tmux.h
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user