diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-06-25 06:48:24 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-06-25 06:48:24 +0000 |
commit | 3a819282f54713d07d84c6b8ca4ddbf48b70e8dc (patch) | |
tree | 6c950a064493039f86557b6095aac4bec93a3401 /usr.bin | |
parent | 998b85f3b81f72bcbb4796f491ba0a37baa190d4 (diff) |
lines variable can be -1 (to be ignored), so should be signed. Found by lint.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/cmd-split-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c index fd41034f279..4b044d0f527 100644 --- a/usr.bin/tmux/cmd-split-window.c +++ b/usr.bin/tmux/cmd-split-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-split-window.c,v 1.1 2009/06/01 22:58:49 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); |