pacman/lib/libalpm
Rikard Falkeborn 875c017e4d Make alpm_graph state signedness explicit
The signedness of char is implementation defined. Since the
alpm_graph state is clearly meant to be signed, make the
signedness explicit.

This fixes bugs on systems where char is unsigned, in comparissons
of the following type:

  if(v.state == -1)

which, if state is unsigned, will never be true due to integer
promotion rules.

Fixes failing test/pacman/tests/sync012.py when compiling with -funsigned-char.

Fixes two warnings [-Wtype-limits] for comparissons with -1 when compiling
with -funsigned-char.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
2016-01-04 13:59:19 +10:00
..
po Pull translations from Transifex and prepare for next release 2015-12-09 16:11:58 +10:00
.gitignore libalpm: add pkg-config file 2012-04-25 20:02:36 -04:00
Makefile.am run hooks during trans_commit 2015-10-18 10:59:23 +10:00
add.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
add.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
alpm.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
alpm.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
alpm_list.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
alpm_list.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
backup.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
backup.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
base64.c base64.c: comment out unused variable 2014-01-15 15:54:56 +10:00
base64.h base64: don't compile base64_encode() function 2011-10-17 12:03:02 -05:00
be_local.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
be_package.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
be_sync.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
conflict.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
conflict.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
db.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
db.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
delta.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
delta.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
deps.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
deps.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
diskspace.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
diskspace.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
dload.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
dload.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
error.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
filelist.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
filelist.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
graph.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
graph.h Make alpm_graph state signedness explicit 2016-01-04 13:59:19 +10:00
group.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
group.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
handle.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
handle.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
hook.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
hook.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
ini.c run hooks during trans_commit 2015-10-18 10:59:23 +10:00
ini.h run hooks during trans_commit 2015-10-18 10:59:23 +10:00
libalpm.pc.in Add large file support CFLAGS to pkgconfig file 2015-12-04 11:06:49 +10:00
libarchive-compat.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
log.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
log.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
md5.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
md5.h Update MD5 routines with changes from PolarSSL 2011-08-11 20:17:21 -05:00
package.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
package.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pkghash.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pkghash.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
rawstr.c Remove ts and sw from vim modeline when noet is set 2014-01-28 20:19:25 +10:00
remove.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
remove.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
sha2.c Use 32-bit wide integer type in PolarSSL code 2012-01-07 11:27:41 -06:00
sha2.h Add sha2 (sha256) routines from PolarSSL 2011-08-15 07:07:13 -05:00
signing.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
signing.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
sync.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
sync.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
trans.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
trans.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
util-common.c Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util-common.h Split common utility functions for libalpm and pacman 2013-01-04 21:49:37 +10:00
util.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
util.h Update copyright years for 2016 2016-01-04 13:27:08 +10:00
version.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00