Add some const and fix a warning.

This commit is contained in:
Nicholas Marriott
2012-01-20 19:54:07 +00:00
parent 8cf19ab770
commit 8332413305
4 changed files with 7 additions and 6 deletions

4
cmd.c
View File

@ -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;