aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-01-20 21:21:32 +0000
committerTiago Cunha <tcunha@gmx.com>2012-01-20 21:21:32 +0000
commit5434a2759ae3452bc11dc0b5e804e421a8c5d7a3 (patch)
tree3bbc9767121b9b541d5e05bf743f1cd4c6f27c6b /cmd-new-window.c
parentb7551c9193c6fe48c68a5555b9b51a9cc3f69511 (diff)
downloadrtmux-5434a2759ae3452bc11dc0b5e804e421a8c5d7a3.tar.gz
rtmux-5434a2759ae3452bc11dc0b5e804e421a8c5d7a3.tar.bz2
rtmux-5434a2759ae3452bc11dc0b5e804e421a8c5d7a3.zip
Sync OpenBSD patchset 1002:
Add some const and fix a warning.
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 30ddd643..5dfa12ea 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -44,7 +44,8 @@ cmd_new_window_exec(struct cmd *self, struct cmd_ctx *ctx)
struct args *args = self->args;
struct session *s;
struct winlink *wl;
- char *cmd, *cwd, *cause;
+ const char *cmd, *cwd;
+ char *cause;
int idx, last, detached;
if (args_has(args, 'a')) {