From: Mark Andrews Date: Fri, 17 Sep 2010 01:51:37 +0000 (+0000) Subject: Use (unsigned char) not (int) to silence (char) array index warnings. X-Git-Tag: v4_3_0a1~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1babd56eeb52474ff6a7b6ffcd992ec2ce75584f;p=thirdparty%2Fdhcp.git Use (unsigned char) not (int) to silence (char) array index warnings. --- diff --git a/common/parse.c b/common/parse.c index 3e1b3bb7a..f459d239c 100644 --- a/common/parse.c +++ b/common/parse.c @@ -4971,7 +4971,7 @@ struct option *option; fmt = option->format; /* 'a' means always uniform */ - if ((fmt[0] != 'Z') && (tolower((int)fmt[1]) == 'a')) + if ((fmt[0] != 'Z') && (tolower((unsigned char)fmt[1]) == 'a')) uniform = 1; do {