aboutsummaryrefslogtreecommitdiff
path: root/cmd-rename-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-26 16:57:32 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-26 16:57:32 +0000
commit4a325c8f9366a1c7643d193ff2e613bbc91ce144 (patch)
treee83434607a56459a436387e06fe559a860a59768 /cmd-rename-window.c
parent51482b57ae351396f2f38b507f9e248fa93c712b (diff)
downloadrtmux-4a325c8f9366a1c7643d193ff2e613bbc91ce144.tar.gz
rtmux-4a325c8f9366a1c7643d193ff2e613bbc91ce144.tar.bz2
rtmux-4a325c8f9366a1c7643d193ff2e613bbc91ce144.zip
unlink-window command. Also fix some u_int -> int problems.
Diffstat (limited to 'cmd-rename-window.c')
-rw-r--r--cmd-rename-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-rename-window.c b/cmd-rename-window.c
index 1816d082..6a949cc0 100644
--- a/cmd-rename-window.c
+++ b/cmd-rename-window.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-rename-window.c,v 1.8 2007-10-26 12:29:07 nicm Exp $ */
+/* $Id: cmd-rename-window.c,v 1.9 2007-10-26 16:57:32 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -62,7 +62,7 @@ cmd_rename_window_parse(void **ptr, int argc, char **argv, char **cause)
while ((opt = getopt(argc, argv, "i:")) != EOF) {
switch (opt) {
case 'i':
- data->idx = strtonum(optarg, 0, UINT_MAX, &errstr);
+ data->idx = strtonum(optarg, 0, INT_MAX, &errstr);
if (errstr != NULL) {
xasprintf(cause, "index %s", errstr);
goto error;