From 3ceb77014140048b34d596cd4fa16086beebf04f Mon Sep 17 00:00:00 2001 From: mux Date: Sat, 3 Apr 2004 23:30:59 +0000 Subject: Fix the remaining warnings of growfs(8) on my sparc64 box with WARNS=6. I don't change the WARNS level in the Makefile because I didn't tested this on other archs. The fs.h fix was suggested by: marcel Reviewed by: md5(1) --- sys/ufs/ffs/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/ufs') diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index dc68435..5f53e1e 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -484,7 +484,7 @@ struct cg { #define cg_clustersfree(cgp) \ ((u_int8_t *)((u_int8_t *)(cgp) + (cgp)->cg_clusteroff)) #define cg_clustersum(cgp) \ - ((int32_t *)((u_int8_t *)(cgp) + (cgp)->cg_clustersumoff)) + ((int32_t *)((uintptr_t)(cgp) + (cgp)->cg_clustersumoff)) /* * Turn filesystem block numbers into disk block addresses. -- cgit v1.1