]> granicus.if.org Git - strace/commitdiff
btrfs: use uint32_t instead of __u32
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 18 Jan 2018 17:44:56 +0000 (17:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 18 Jan 2018 17:44:56 +0000 (17:44 +0000)
* btrfs.c (btrfs_ioctl) [!HAVE_STRUCT_BTRFS_IOCTL_FS_INFO_ARGS_NODESIZE]:
Replace __u32 with uint32_t.  Remove useless cast.

btrfs.c

diff --git a/btrfs.c b/btrfs.c
index 543acd7e698e3fb2e8c35779d6c9f031aeaffe9d..d8e62dc0198e9ea168215fee4744c2655d79f38c 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -787,7 +787,7 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
                char uuid[UUID_STRING_SIZE+1];
                uint32_t nodesize, sectorsize, clone_alignment;
 #ifndef HAVE_STRUCT_BTRFS_IOCTL_FS_INFO_ARGS_NODESIZE
-               __u32 *reserved32;
+               uint32_t *reserved32;
 #endif
 
                if (entering(tcp))
@@ -802,7 +802,7 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
                sectorsize = args.sectorsize,
                clone_alignment = args.clone_alignment;
 #else
-               reserved32 = (__u32 *) (void *) args.reserved;
+               reserved32 = (void *) args.reserved;
                nodesize = reserved32[0];
                sectorsize = reserved32[1];
                clone_alignment = reserved32[2];