diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:10:18 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-06-25 16:10:18 +0000 |
commit | bfa46e8f91aa79fdd6358927dda6ba74f28a45d7 (patch) | |
tree | 70077b1b8139a98ad73fd48c78a25820e23fce3f /cmd-split-window.c | |
parent | f0bcbcfa7f07f9dba0828ae5328cd742b4ea1b91 (diff) |
lines variable can be -1 (to be ignored), so should be signed. Found by lint.
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index cbd840ba..4b044d0f 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-split-window.c,v 1.13 2009-05-04 17:58:26 nicm Exp $ */ +/* $OpenBSD: cmd-split-window.c,v 1.2 2009/06/25 06:48:23 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -141,7 +141,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx) struct window_pane *wp; const char **env; char *cmd, *cwd, *cause; - u_int hlimit, lines; + u_int hlimit; + int lines; if ((wl = cmd_find_window(ctx, data->target, &s)) == NULL) return (-1); |