From 7cde8c97f303127bb18a4d9b4ee68e1706bd532e Mon Sep 17 00:00:00 2001 From: trasz Date: Fri, 24 Apr 2015 12:48:48 +0000 Subject: Fix growfs(8) build with debug enabled (make -DGFSDBG). PR: 199641 Submitted by: Willem Jan Withagen MFC after: 1 month Sponsored by: The FreeBSD Foundation --- sbin/growfs/Makefile | 6 +++--- sbin/growfs/growfs.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'sbin') diff --git a/sbin/growfs/Makefile b/sbin/growfs/Makefile index 1f7422e..e7017a7 100644 --- a/sbin/growfs/Makefile +++ b/sbin/growfs/Makefile @@ -4,8 +4,6 @@ # $FreeBSD$ # -#GFSDBG= - .include .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 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; -- cgit v1.1