From 941eab33e9722b26244e7f344311f065eb28ef44 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 30 Oct 2007 10:59:43 +0000 Subject: %u -> %d for indexes. Some lint fixes. --- cmd-set-option.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd-set-option.c') 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 @@ -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 || -- cgit