summaryrefslogtreecommitdiff
path: root/lib/libalpm/diskspace.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-11-16 20:12:27 -0600
committerDan McGee <dan@archlinux.org>2010-12-12 20:32:05 -0600
commitb7015af0fc9325740950223e719f6dec153e264b (patch)
tree417d7e912a584dd0e4fb930c085f639085ef6fae /lib/libalpm/diskspace.h
parentec136784d4328b4c75f622c08273cf9dc6cac40f (diff)
downloadpacman-b7015af0fc9325740950223e719f6dec153e264b.tar.xz
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>
Diffstat (limited to 'lib/libalpm/diskspace.h')
-rw-r--r--lib/libalpm/diskspace.h4
1 files changed, 2 insertions, 2 deletions
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 */