MFC r281929:

Fix growfs(8) build with debug enabled (make -DGFSDBG).

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
trasz 2015-06-21 06:49:44 +00:00
parent 1b7df0d462
commit 5c12b82b8d
2 changed files with 5 additions and 5 deletions

View File

@ -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}

View File

@ -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;