diff options
author | sam <sam@FreeBSD.org> | 2008-12-18 05:41:51 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-12-18 05:41:51 +0000 |
commit | 18be4046781d87777964612b5b9e8233864a8b91 (patch) | |
tree | f1e79c00dc1bb8d1b0d4cfb75f1e771b1cdf483e | |
parent | f7ffcda082ec312ba49e76a14a2f6b0b0413e573 (diff) | |
download | FreeBSD-src-18be4046781d87777964612b5b9e8233864a8b91.zip FreeBSD-src-18be4046781d87777964612b5b9e8233864a8b91.tar.gz |
fix stuff i broke
-rw-r--r-- | makefs.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -270,9 +270,12 @@ extern struct timespec start_time; #define cg_chkmagic_swap(cgp, ns) \ (ufs_rw32((cgp)->cg_magic, (ns)) == CG_MAGIC) -#define cg_inosused_swap(cgp, ns) cg_inosused(cgp) -#define cg_blksfree_swap(cgp, ns) cg_blksfree(cgp) -#define cg_clustersfree_swap(cgp, ns) cg_clustersfree(cgp) +#define cg_inosused_swap(cgp, ns) \ + ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_iusedoff, (ns)))) +#define cg_blksfree_swap(cgp, ns) \ + ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_freeoff, (ns)))) +#define cg_clustersfree_swap(cgp, ns) \ + ((u_int8_t *)((u_int8_t *)(cgp) + ufs_rw32((cgp)->cg_clusteroff, (ns)))) #define cg_clustersum_swap(cgp, ns) \ ((int32_t *)((uintptr_t)(cgp) + ufs_rw32((cgp)->cg_clustersumoff, ns))) |