From b7015af0fc9325740950223e719f6dec153e264b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 16 Nov 2010 20:12:27 -0600 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/diskspace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libalpm/diskspace.h') diff --git a/lib/libalpm/diskspace.h b/lib/libalpm/diskspace.h index 60c00280..e73497ef 100644 --- a/lib/libalpm/diskspace.h +++ b/lib/libalpm/diskspace.h @@ -36,10 +36,10 @@ typedef struct __alpm_mountpoint_t { long blocks_needed; long max_blocks_needed; int used; - FSSTATSTYPE *fsp; + FSSTATSTYPE fsp; } alpm_mountpoint_t; -int _alpm_check_diskspace(pmtrans_t *trans, pmdb_t *db); +int _alpm_check_diskspace(pmtrans_t *trans, pmdb_t *db_local); #endif /* _ALPM_DISKSPACE_H */ -- cgit v1.2.3-24-g4f1b