kwset: use unsigned char to store values with high-bit set
commit189c860c9ec5deb95845c056ca5c15b58970158e
authorBen Walton <bdwalton@gmail.com>
Mon, 2 Mar 2015 19:22:31 +0000 (2 19:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Mar 2015 20:32:24 +0000 (2 12:32 -0800)
tree95425f23f775ddfd60d1e96927aca0eabc6203b7
parent282616c72d1d08a77ca4fe1186cb708c38408d87
kwset: use unsigned char to store values with high-bit set

Sun Studio on Solaris issues warnings about improper initialization
values being used when defining tolower_trans_tbl[] in ctype.c.  The
array wants to store values with high-bit set and treat them as
values between 128 to 255.  Unlike the rest of the Git codebase
where we explicitly specify 'unsigned char' for such variables and
arrays, however, kwset code we borrowed from elsewhere uses 'char'
for this and other variables.

Fix the declarations to explicitly use 'unsigned char' where
necessary to bring it in line with the rest of the Git.

Signed-off-by: Ben Walton <bdwalton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ctype.c
git-compat-util.h
kwset.c
kwset.h