1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00
pacman/src/util
Rikard Falkeborn 88f348f2b1 pacsort, introduce define for escape_char error code
The signedness of char is implementation defined. On systems where
char is unsigned, comparing a variable of type char with -1 is never
true, due to integer promotion rules. To avoid this, introduce a
define for invalid field separators where -1 is cast to char. This will
ensure that the return value check works for both unsigned and signed char.

Fixes one warning [-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 14:05:28 +10:00
..
.gitignore Remove testdb 2015-01-02 21:44:59 +10:00
cleanupdelta.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
Makefile.am Fix compilation if libarchive headers are not in standard location 2015-05-12 14:00:54 +10:00
pacsort.c pacsort, introduce define for escape_char error code 2016-01-04 14:05:28 +10:00
pactree.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
testpkg.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00
util-common.c util: Use util-common for strndup in pacsort and pactree 2015-03-03 16:54:17 +10:00
util-common.h util: Use util-common for strndup in pacsort and pactree 2015-03-03 16:54:17 +10:00
vercmp.c Update copyright years for 2016 2016-01-04 13:27:08 +10:00