summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-01-20 19:54:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-01-20 19:54:07 +0000
commit83324133055d9906d99f9709970d0e258ac87f79 (patch)
treef8b87ae54e906e725b5367f3f933e7e0eb445669 /cmd-new-window.c
parent8cf19ab770e03f0dccc4731852a23d670b3ebad2 (diff)
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 cdf45006..d858ee30 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')) {