[PATCH 4/8] xfsprogs: remove the uint_t typedef
Christoph Hellwig
hch at lst.de
Sun Jun 21 04:22:00 CDT 2015
This was only used in a few IRIX platform helpers that can use __uint32_t
instead.
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
include/irix.h | 10 +++++-----
libxfs/libxfs_priv.h | 2 --
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/include/irix.h b/include/irix.h
index 5040451..ad6dbfe 100644
--- a/include/irix.h
+++ b/include/irix.h
@@ -294,13 +294,13 @@ static __inline__ void platform_getoptreset(void)
static __inline__ int platform_uuid_compare(uuid_t *uu1, uuid_t *uu2)
{
- uint_t status;
+ __uint32_t status;
return uuid_compare(uu1, uu2, &status);
}
static __inline__ void platform_uuid_unparse(uuid_t *uu, char *buffer)
{
- uint_t status;
+ __uint32_t status;
char *s;
uuid_to_string(uu, &s, &status);
if (status == uuid_s_ok)
@@ -311,7 +311,7 @@ static __inline__ void platform_uuid_unparse(uuid_t *uu, char *buffer)
static __inline__ int platform_uuid_parse(char *buffer, uuid_t *uu)
{
- uint_t status;
+ __uint32_t status;
uuid_from_string(buffer, uu, &status);
return (status == uuid_s_ok);
}
@@ -324,13 +324,13 @@ static __inline__ int platform_uuid_is_null(uuid_t *uu)
static __inline__ void platform_uuid_generate(uuid_t *uu)
{
- uint_t status;
+ __uint32_t status;
uuid_create(uu, &status);
}
static __inline__ void platform_uuid_clear(uuid_t *uu)
{
- uint_t status;
+ __uint32_t status;
uuid_create_nil(uu, &status);
}
diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h
index 37a86aa..fd3494a 100644
--- a/libxfs/libxfs_priv.h
+++ b/libxfs/libxfs_priv.h
@@ -95,8 +95,6 @@ extern char *progname;
#undef ASSERT
#define ASSERT(ex) assert(ex)
-typedef __uint32_t uint_t;
-
#ifndef EWRONGFS
#define EWRONGFS EINVAL
#endif
--
1.9.1
More information about the xfs
mailing list