kern/162564: [ext2fs][patch] fs/ext2fs: Add include guard

gnehzuil gnehzuil at gmail.com
Mon Nov 14 16:10:08 UTC 2011


>Number:         162564
>Category:       kern
>Synopsis:       [ext2fs][patch] fs/ext2fs: Add include guard
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 14 16:10:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Zheng Liu
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD freebsd-dev 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Mon Nov 14 11:44:58 CST 2011 root at freebsd-dev:/usr/obj/usr/src/sys/CURRENT amd64
>Description:
A include guard is added into fs.h to avoid duplicated include operation. A include guard name is changed according to style in ext2fs.h.
>How-To-Repeat:
>Fix:

--- ext2fs-include-guard.patch begins here ---
diff -urN fs/ext2fs.orig/ext2fs.h fs/ext2fs/ext2fs.h
--- fs/ext2fs.orig/ext2fs.h	2011-11-14 16:08:35.000000000 +0800
+++ fs/ext2fs/ext2fs.h	2011-11-14 16:07:46.000000000 +0800
@@ -34,8 +34,8 @@
  * 
  */
 
-#ifndef _FS_EXT2FS_EXT2_FS_H_
-#define _FS_EXT2FS_EXT2_FS_H_
+#ifndef _FS_EXT2FS_EXT2FS_H_
+#define _FS_EXT2FS_EXT2FS_H_
 
 #include <sys/types.h>
 
diff -urN fs/ext2fs.orig/fs.h fs/ext2fs/fs.h
--- fs/ext2fs.orig/fs.h	2011-11-14 16:08:35.000000000 +0800
+++ fs/ext2fs/fs.h	2011-11-14 16:07:32.000000000 +0800
@@ -36,6 +36,9 @@
  * $FreeBSD: src/sys/fs/ext2fs/fs.h,v 1.1 2010/01/14 14:30:54 lulf Exp $
  */
 
+#ifndef _FS_EXT2FS_FS_H_
+#define _FS_EXT2FS_FS_H_
+
 /*
  * Each disk drive contains some number of file systems.
  * A file system consists of a number of cylinder groups.
@@ -149,4 +152,4 @@
 extern int inside[], around[];
 extern u_char *fragtbl[];
 
-
+#endif /* !_FS_EXT2FS_FS_H_ */
--- ext2fs-include-guard.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list