summaryrefslogtreecommitdiffstats
path: root/cmd.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.c
parent8cf19ab770e03f0dccc4731852a23d670b3ebad2 (diff)
Add some const and fix a warning.
Diffstat (limited to 'cmd.c')
-rw-r--r--cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd.c b/cmd.c
index 65617a6c..f5d863d7 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1215,10 +1215,10 @@ cmd_template_replace(char *template, const char *s, int idx)
}
/* Return the default path for a new pane. */
-char *
+const char *
cmd_get_default_path(struct cmd_ctx *ctx)
{
- char *cwd;
+ const char *cwd;
struct session *s;
struct window_pane *wp;
struct environ_entry *envent;