diskspace style cleanups and small fixes
commitb7015af0fc9325740950223e719f6dec153e264b
authorDan McGee <dan@archlinux.org>
Wed, 17 Nov 2010 02:12:27 +0000 (16 20:12 -0600)
committerDan McGee <dan@archlinux.org>
Mon, 13 Dec 2010 02:32:05 +0000 (12 20:32 -0600)
tree417d7e912a584dd0e4fb930c085f639085ef6fae
parentec136784d4328b4c75f622c08273cf9dc6cac40f
diskspace style cleanups and small fixes

* Use our normal return() function syntax
* Rework a few things to reduce number of casts
* Fix void function argument declaration
* Add missing gettext _() call
* Remove need for seperate malloc() of statvfs/statfs structure
* Unify argument order of static functions- mountpoints now always
  passed first
* Count all files that start with '.' in a package against the DB
* Rename db to db_local in check_diskspace to clarify some code
* Fix some line wrapping to respect 80 characters

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
lib/libalpm/diskspace.c
lib/libalpm/diskspace.h