From 5d9edeac7ef22cb2d24490f0832f47c87435258b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 31 Jul 2015 09:20:58 +1000 Subject: [PATCH] xfsprogs: remove boolean_t typedef Only one use of this exists, and it's treated like an int anyway by both caller and callee. Signed-off-by: Christoph Hellwig Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- include/darwin.h | 3 --- include/freebsd.h | 2 -- include/gnukfreebsd.h | 2 -- include/linux.h | 5 ----- logprint/log_misc.c | 2 +- 5 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/darwin.h b/include/darwin.h index ca9f8f4f1..3655d4077 100644 --- a/include/darwin.h +++ b/include/darwin.h @@ -144,9 +144,6 @@ typedef char* xfs_caddr_t; #define O_SYNC 0 #endif -#define B_FALSE 0 -#define B_TRUE 1 - #define ENOATTR 989 /* Attribute not found */ #define EFSCORRUPTED 990 /* Filesystem is corrupted */ #define EFSBADCRC 991 /* Bad CRC detected */ diff --git a/include/freebsd.h b/include/freebsd.h index d01c0c137..244b01236 100644 --- a/include/freebsd.h +++ b/include/freebsd.h @@ -55,8 +55,6 @@ typedef __int64_t xfs_daddr_t; typedef char* xfs_caddr_t; typedef off_t loff_t; -typedef enum { B_FALSE,B_TRUE } boolean_t; - #define O_LARGEFILE 0 #define HAVE_FID 1 diff --git a/include/gnukfreebsd.h b/include/gnukfreebsd.h index 914825ef5..1e712a5a6 100644 --- a/include/gnukfreebsd.h +++ b/include/gnukfreebsd.h @@ -45,8 +45,6 @@ typedef __int64_t xfs_daddr_t; typedef char* xfs_caddr_t; typedef off_t loff_t; -typedef enum { B_FALSE,B_TRUE } boolean_t; - #define HAVE_FID 1 static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p) diff --git a/include/linux.h b/include/linux.h index da50421e3..e7a3cb21a 100644 --- a/include/linux.h +++ b/include/linux.h @@ -144,9 +144,4 @@ typedef __uint32_t xfs_dev_t; typedef __int64_t xfs_daddr_t; typedef char* xfs_caddr_t; -#ifndef _BOOLEAN_T_DEFINED -typedef enum {B_FALSE, B_TRUE} boolean_t; -#define _BOOLEAN_T_DEFINED 1 -#endif - #endif /* __XFS_LINUX_H__ */ diff --git a/logprint/log_misc.c b/logprint/log_misc.c index 91ef07087..315f69dd1 100644 --- a/logprint/log_misc.c +++ b/logprint/log_misc.c @@ -641,7 +641,7 @@ xlog_print_trans_inode( int len, int *i, int num_ops, - boolean_t continued) + int continued) { xfs_icdinode_t dino; xlog_op_header_t *op_head; -- 2.47.2