From: Mark Andrews Date: Fri, 17 Sep 2010 02:48:00 +0000 (+0000) Subject: Use (unsigned char) not (int) to silence (char) array index warnings. X-Git-Tag: v4_2_1b1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=501073943b064462b1fcef57963800460c744362;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 {