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

View File

@ -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')) {