From: Felix Janda <felix.janda@posteo.de>
To: xfs@oss.sgi.com
Subject: [PATCH xfsprogs] kill off u_int*_t types
Date: Sat, 6 Aug 2016 10:39:49 +0200 [thread overview]
Message-ID: <20160806083949.GA28832@nyan> (raw)
They were only used in two places and can be replaced by uint*_t.
Signed-off-by: Felix Janda <felix.janda@posteo.de>
---
db/check.c | 2 +-
include/darwin.h | 8 ++------
libxfs/xfs_format.h | 2 +-
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/db/check.c b/db/check.c
index 25146e5..f507148 100644
--- a/db/check.c
+++ b/db/check.c
@@ -3336,7 +3336,7 @@ process_quota(
int cb;
xfs_dqblk_t *dqb;
xfs_dqid_t dqid;
- u_int8_t exp_flags = 0;
+ uint8_t exp_flags = 0;
uint i;
uint perblock;
xfs_fileoff_t qbno;
diff --git a/include/darwin.h b/include/darwin.h
index 45e0c03..b5076ce 100644
--- a/include/darwin.h
+++ b/include/darwin.h
@@ -130,15 +130,11 @@ typedef signed long long int __s64;
#define __int32_t int32_t
#define __int32_t int32_t
#define __int64_t int64_t
-#define __uint8_t u_int8_t
-#define __uint16_t u_int16_t
-#define __uint32_t u_int32_t
-#define __uint64_t u_int64_t
#define off64_t off_t
typedef off_t xfs_off_t;
-typedef u_int64_t xfs_ino_t;
-typedef u_int32_t xfs_dev_t;
+typedef uint64_t xfs_ino_t;
+typedef uint32_t xfs_dev_t;
typedef int64_t xfs_daddr_t;
#define stat64 stat
diff --git a/libxfs/xfs_format.h b/libxfs/xfs_format.h
index f89b6e0..eb50a76 100644
--- a/libxfs/xfs_format.h
+++ b/libxfs/xfs_format.h
@@ -1109,7 +1109,7 @@ static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev)
* Dquot and dquot block format definitions
*/
#define XFS_DQUOT_MAGIC 0x4451 /* 'DQ' */
-#define XFS_DQUOT_VERSION (u_int8_t)0x01 /* latest version number */
+#define XFS_DQUOT_VERSION (uint8_t)0x01 /* latest version number */
/*
* This is the main portion of the on-disk representation of quota
--
2.7.3
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
reply other threads:[~2016-08-06 8:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160806083949.GA28832@nyan \
--to=felix.janda@posteo.de \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox