summaryrefslogtreecommitdiffstats
path: root/cmd-set-option.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-30 10:59:43 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-30 10:59:43 +0000
commit941eab33e9722b26244e7f344311f065eb28ef44 (patch)
tree89f908444a5aa7a6181189535d3f08102efaa670 /cmd-set-option.c
parentab097f0c0c7cd6d30767fc63d05731197160aeeb (diff)
%u -> %d for indexes. Some lint fixes.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r--cmd-set-option.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c
index 24d4a2f6..dff7361d 100644
--- a/cmd-set-option.c
+++ b/cmd-set-option.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-set-option.c,v 1.10 2007-10-20 09:57:08 nicm Exp $ */
+/* $Id: cmd-set-option.c,v 1.11 2007-10-30 10:59:43 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -90,8 +90,8 @@ cmd_set_option_exec(void *ptr, unused struct cmd_ctx *ctx)
struct cmd_set_option_data *data = ptr;
struct client *c = ctx->client;
const char *errstr;
- u_int number, i;
- int bool, key;
+ u_int i;
+ int number, bool, key;
if (data == NULL)
return;
@@ -103,7 +103,7 @@ cmd_set_option_exec(void *ptr, unused struct cmd_ctx *ctx)
number = -1;
if (data->value != NULL) {
- number = strtonum(data->value, 0, UINT_MAX, &errstr);
+ number = strtonum(data->value, 0, INT_MAX, &errstr);
bool = -1;
if (number == 1 || strcasecmp(data->value, "on") == 0 ||