Use size_t for alpm_list sizes
commitf966f3a8344cd96bd675c79a5c470c66920b890c
authorAllan McRae <allan@archlinux.org>
Wed, 8 Dec 2010 05:13:36 +0000 (8 15:13 +1000)
committerDan McGee <dan@archlinux.org>
Sat, 8 Jan 2011 03:15:46 +0000 (7 21:15 -0600)
treec97116b7cc0ca1dca8bed3f050ab18dc28a05585
parent4bc6ed56aa48784c8caf56c3a6fb1a3c972d221c
Use size_t for alpm_list sizes

There is a lot of swtiching between size_t and int for alpm_list sizes
in the codebase.   Start converting these to all be size_t by adjusting
the return type of alpm_list_count and fixing all additional warnings
given by -Wconversion that are generated by this change.

Dan: a few more small changes to ensure things compile, adjusting some
printf format string characters to accommodate the larger size on x86_64.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
12 files changed:
lib/libalpm/add.c
lib/libalpm/alpm.h
lib/libalpm/alpm_list.c
lib/libalpm/alpm_list.h
lib/libalpm/be_local.c
lib/libalpm/be_sync.c
lib/libalpm/conflict.c
lib/libalpm/diskspace.c
lib/libalpm/remove.c
lib/libalpm/sync.c
src/pacman/callback.c
src/pacman/callback.h