From: nicm Date: Fri, 9 May 2014 09:11:24 +0000 (+0000) Subject: Just use char ** for argv like normal people, not char *const *. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b2eee47503be392f337a1b0229557c156911aae6;p=openbsd Just use char ** for argv like normal people, not char *const *. --- diff --git a/usr.bin/tmux/cmd.c b/usr.bin/tmux/cmd.c index 42fba1bb211..c7cc683e007 100644 --- a/usr.bin/tmux/cmd.c +++ b/usr.bin/tmux/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.92 2014/04/16 21:02:41 nicm Exp $ */ +/* $OpenBSD: cmd.c,v 1.93 2014/05/09 09:11:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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; diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index ce7cdda7a14..6534eaf5652 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.459 2014/05/08 07:54:47 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.460 2014/05/09 09:11:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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);