yaffs direct cleanups: C++ header wrapping and u32 type change
authorCharles Manning <cdhmanning@gmail.com>
Thu, 14 Jun 2012 03:01:36 +0000 (15:01 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Thu, 14 Jun 2012 03:01:36 +0000 (15:01 +1200)
Some of the clean-ups proposed by Stéphane Lesage.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/yaffsfs.h
direct/yportenv.h

index 3196f0c6a691b3b17f2d652e075971329ac1d977..ba3f87fb256001a3b240c80f8c33ced4e9b1bfd0 100644 (file)
        ( (sizeof(Y_LOFF_T) < 8) ? YAFFS_MAX_FILE_SIZE_32 : (0x800000000LL - 1) )
 
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
 struct yaffs_dirent {
        long d_ino;                     /* inode number */
        off_t d_off;                    /* offset to this dirent */
@@ -207,4 +213,11 @@ int yaffs_set_error(int error);
 /* Trace control functions */
 unsigned  yaffs_set_trace(unsigned tm);
 unsigned  yaffs_get_trace(void);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
 #endif
index b47a4d601e9317311be91729a64efe8986d0f134..abc761b6e8c508be860e535730db8c6b10a1535d 100644 (file)
@@ -22,7 +22,7 @@
 #ifdef CONFIG_YAFFS_DEFINES_TYPES
 typedef unsigned char u8;
 typedef unsigned short u16;
-typedef unsigned u32;
+typedef unsigned int u32;
 #endif