]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/hfsplus/hfsplus_raw.h
hfsplus: code style fixes - reworked support of extended attributes
[karo-tx-linux.git] / fs / hfsplus / hfsplus_raw.h
index 56f393f906dd57dab24a7008ca67e779595c57ee..452ede01b036c4de551e2cb9a723855bf066070b 100644 (file)
@@ -55,18 +55,20 @@ typedef __be16 hfsplus_unichr;
 #define HFSPLUS_MAX_STRLEN 255
 #define HFSPLUS_ATTR_MAX_STRLEN 127
 
-#define HFSPLUS_STRING(name, max_len)          \
-struct hfsplus_##name {                                \
-       __be16 length;                          \
-       hfsplus_unichr unicode[max_len];        \
-} __packed;                                    \
-
 /* A "string" as used in filenames, etc. */
-HFSPLUS_STRING(unistr, HFSPLUS_MAX_STRLEN)
+struct hfsplus_unistr {
+       __be16 length;
+       hfsplus_unichr unicode[HFSPLUS_MAX_STRLEN];
+} __packed;
 
-/* A "string" is used in attributes file
-   for name of extended attribute */
-HFSPLUS_STRING(attr_unistr, HFSPLUS_ATTR_MAX_STRLEN)
+/*
+ * A "string" is used in attributes file
+ * for name of extended attribute
+ */
+struct hfsplus_attr_unistr {
+       __be16 length;
+       hfsplus_unichr unicode[HFSPLUS_ATTR_MAX_STRLEN];
+} __packed;
 
 /* POSIX permissions */
 struct hfsplus_perm {