Author: trasz
Date: Sun Jun 21 06:49:44 2015
New Revision: 284669
URL: https://svnweb.freebsd.org/changeset/base/284669

Log:
  MFC r281929:
  
  Fix growfs(8) build with debug enabled (make -DGFSDBG).
  
  Sponsored by: The FreeBSD Foundation

Modified:
  stable/10/sbin/growfs/Makefile
  stable/10/sbin/growfs/growfs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/growfs/Makefile
==============================================================================
--- stable/10/sbin/growfs/Makefile      Sun Jun 21 06:44:32 2015        
(r284668)
+++ stable/10/sbin/growfs/Makefile      Sun Jun 21 06:49:44 2015        
(r284669)
@@ -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}

Modified: stable/10/sbin/growfs/growfs.c
==============================================================================
--- stable/10/sbin/growfs/growfs.c      Sun Jun 21 06:44:32 2015        
(r284668)
+++ stable/10/sbin/growfs/growfs.c      Sun Jun 21 06:49:44 2015        
(r284669)
@@ -161,7 +161,7 @@ growfs(int fsi, int fso, unsigned int Nf
 #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 Nf
 #ifdef FS_DEBUG
        {
                struct csum     *dbg_csp;
-               int     dbg_csc;
+               u_int32_t       dbg_csc;
                char    dbg_line[80];
 
                dbg_csp = fscs;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to