aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/growfs
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2015-04-24 12:48:48 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2015-04-24 12:48:48 +0000
commita44ba043c998001dcc2248f2708db1c54fbf7001 (patch)
tree769b8c26daa13ecedd36c51eeeb1e7277a105c47 /sbin/growfs
parent6eec0f2bda93145bd2a3653897bfddb7653db46c (diff)
downloadsrc-a44ba043c998001dcc2248f2708db1c54fbf7001.tar.gz
src-a44ba043c998001dcc2248f2708db1c54fbf7001.zip
Fix growfs(8) build with debug enabled (make -DGFSDBG).
PR: 199641 Submitted by: Willem Jan Withagen <wjw at digiware dot nl> MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=281929
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/Makefile6
-rw-r--r--sbin/growfs/growfs.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sbin/growfs/Makefile b/sbin/growfs/Makefile
index 1f7422e6d4a9..e7017a71f938 100644
--- a/sbin/growfs/Makefile
+++ b/sbin/growfs/Makefile
@@ -4,8 +4,6 @@
# $FreeBSD$
#
-#GFSDBG=
-
.include <src.opts.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
LIBADD= util
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index 96897e2f8db9..7b85b25329b8 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;