mirror of
https://github.com/tmux/tmux.git
synced 2025-09-03 06:17:04 +00:00
%u -> %d for indexes. Some lint fixes.
This commit is contained in:
@ -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 ||
|
||||
|
Reference in New Issue
Block a user