diff options
author | trasz <trasz@FreeBSD.org> | 2015-06-21 06:49:44 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2015-06-21 06:49:44 +0000 |
commit | 5c12b82b8d5f97145741e907c7e85155e084a223 (patch) | |
tree | 6272d916e30b3facd02933fb30a453313d189c0a | |
parent | 1b7df0d462a88f7301a0ce00b7b4aa1ca8616976 (diff) | |
download | FreeBSD-src-5c12b82b8d5f97145741e907c7e85155e084a223.zip FreeBSD-src-5c12b82b8d5f97145741e907c7e85155e084a223.tar.gz |
MFC r281929:
Fix growfs(8) build with debug enabled (make -DGFSDBG).
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sbin/growfs/Makefile | 6 | ||||
-rw-r--r-- | sbin/growfs/growfs.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/growfs/Makefile b/sbin/growfs/Makefile index 58ce41d..b4e109d 100644 --- a/sbin/growfs/Makefile +++ b/sbin/growfs/Makefile @@ -4,8 +4,6 @@ # $FreeBSD$ # -#GFSDBG= - .include <bsd.own.mk> .PATH: ${.CURDIR}/../mount @@ -16,7 +14,9 @@ MAN= growfs.8 CFLAGS+=-I${.CURDIR}/../mount .if defined(GFSDBG) -SRCS+= debug.c +SRCS+= debug.c +CFLAGS+= -DFS_DEBUG +NO_WCAST_ALIGN= yes .endif DPADD= ${LIBUTIL} diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 96897e2..7b85b25 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -161,7 +161,7 @@ growfs(int fsi, int fso, unsigned int Nflag) #ifdef FS_DEBUG { struct csum *dbg_csp; - int dbg_csc; + u_int32_t dbg_csc; char dbg_line[80]; dbg_csp = fscs; @@ -242,7 +242,7 @@ growfs(int fsi, int fso, unsigned int Nflag) #ifdef FS_DEBUG { struct csum *dbg_csp; - int dbg_csc; + u_int32_t dbg_csc; char dbg_line[80]; dbg_csp = fscs; |