cygwin fix : use unsigned char for ctype function
commitcaea098c2191a2d94a28e90bfef958c34473a5a4
authorXavier Chantry <shiningxc@gmail.com>
Fri, 25 Sep 2009 22:58:42 +0000 (26 00:58 +0200)
committerDan McGee <dan@archlinux.org>
Sun, 11 Oct 2009 20:12:20 +0000 (11 15:12 -0500)
treef27ec0455b22930ae74ee6eb4386eef6e2d9a447
parent35bbc96b99a8f9c8534b20d0ff7a30526b7d957d
cygwin fix : use unsigned char for ctype function

See http://www.nabble.com/-PATCH-RFA--Distinguish-between-EOF-and-character-with-value-0xff-td23161772.html#a23188494

cygwin 1.7 actually displays a warning when using signed char with the ctype
function, so that compilation fails when using -Wall -Werror.

So we just cast all arguments to unsigned char.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_files.c
lib/libalpm/be_package.c
lib/libalpm/util.c
src/pacman/util.c