]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Rearrange some struct/typedef declarations to work with more compiler variants.
authorNathan Scott <nathans@sgi.com>
Mon, 13 Feb 2006 14:37:59 +0000 (14:37 +0000)
committerNathan Scott <nathans@sgi.com>
Mon, 13 Feb 2006 14:37:59 +0000 (14:37 +0000)
Merge of master-melb:xfs-cmds:25183a by kenmcd.

include/xfs_dir_sf.h

index fe44c6f4d56062a06cd64b030a1c38e31fd69331..5b20b4d3f57ddba2423cf0e8a3d4cccbab5cbc90 100644 (file)
@@ -35,19 +35,21 @@ typedef struct { __uint8_t i[sizeof(xfs_ino_t)]; } xfs_dir_ino_t;
  * and the elements much be memcpy'd out into a work area to get correct
  * alignment for the inode number fields.
  */
+typedef struct xfs_dir_sf_hdr {                /* constant-structure header block */
+       xfs_dir_ino_t   parent;         /* parent dir inode number */
+       __uint8_t       count;          /* count of active entries */
+} xfs_dir_sf_hdr_t;
+
+typedef struct xfs_dir_sf_entry {
+       xfs_dir_ino_t   inumber;        /* referenced inode number */
+       __uint8_t       namelen;        /* actual length of name (no NULL) */
+       __uint8_t       name[1];        /* name */
+} xfs_dir_sf_entry_t;
+
 typedef struct xfs_dir_shortform {
-       struct xfs_dir_sf_hdr {         /* constant-structure header block */
-               xfs_dir_ino_t parent;   /* parent dir inode number */
-               __uint8_t count;        /* count of active entries */
-       } hdr;
-       struct xfs_dir_sf_entry {
-               xfs_dir_ino_t inumber;  /* referenced inode number */
-               __uint8_t namelen;      /* actual length of name (no NULL) */
-               __uint8_t name[1];      /* name */
-       } list[1];                      /* variable sized array */
+       xfs_dir_sf_hdr_t        hdr;
+       xfs_dir_sf_entry_t      list[1];        /* variable sized array */
 } xfs_dir_shortform_t;
-typedef struct xfs_dir_sf_hdr xfs_dir_sf_hdr_t;
-typedef struct xfs_dir_sf_entry xfs_dir_sf_entry_t;
 
 /*
  * We generate this then sort it, so that readdirs are returned in