summaryrefslogtreecommitdiffstats
path: root/cmd.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.c
parentb7551c9193c6fe48c68a5555b9b51a9cc3f69511 (diff)
Sync OpenBSD patchset 1002:
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 85ae1dd2..9fcdfde7 100644
--- a/cmd.c
+++ b/cmd.c
@@ -1214,10 +1214,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;