diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-26 16:57:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-26 16:57:32 +0000 |
commit | 4a325c8f9366a1c7643d193ff2e613bbc91ce144 (patch) | |
tree | e83434607a56459a436387e06fe559a860a59768 /cmd-link-window.c | |
parent | 51482b57ae351396f2f38b507f9e248fa93c712b (diff) |
unlink-window command. Also fix some u_int -> int problems.
Diffstat (limited to 'cmd-link-window.c')
-rw-r--r-- | cmd-link-window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-link-window.c b/cmd-link-window.c index 0fb0b7ea..ee8ddd83 100644 --- a/cmd-link-window.c +++ b/cmd-link-window.c @@ -1,4 +1,4 @@ -/* $Id: cmd-link-window.c,v 1.2 2007-10-26 13:35:39 nicm Exp $ */ +/* $Id: cmd-link-window.c,v 1.3 2007-10-26 16:57:32 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -66,7 +66,7 @@ cmd_link_window_parse(void **ptr, int argc, char **argv, char **cause) while ((opt = getopt(argc, argv, "di:")) != EOF) { switch (opt) { case 'i': - data->dstidx = strtonum(optarg, 0, UINT_MAX, &errstr); + data->dstidx = strtonum(optarg, 0, INT_MAX, &errstr); if (errstr != NULL) { xasprintf(cause, "index %s", errstr); goto error; @@ -85,7 +85,7 @@ cmd_link_window_parse(void **ptr, int argc, char **argv, char **cause) goto usage; data->srcname = xstrdup(argv[0]); - data->srcidx = strtonum(argv[1], 0, UINT_MAX, &errstr); + data->srcidx = strtonum(argv[1], 0, INT_MAX, &errstr); if (errstr != NULL) { xasprintf(cause, "index %s", errstr); goto error; |