summaryrefslogtreecommitdiffstats
path: root/src/exfat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:01:51 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:01:51 +0100
commit92c628c50c49a96f0b2193092412d4df60d02eeb (patch)
tree5e5f2189f25404337f2c77115b4c70fa31b2a66d /src/exfat_dir.c
parent0919ba08e99b2be59f564e9b980f3efda422bf4b (diff)
Remove redondant declaration of EXFAT_MKMODE()
Diffstat (limited to 'src/exfat_dir.c')
-rw-r--r--src/exfat_dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/exfat_dir.c b/src/exfat_dir.c
index 041b889..98788e4 100644
--- a/src/exfat_dir.c
+++ b/src/exfat_dir.c
@@ -52,7 +52,7 @@
#include "setdate.h"
#include "fat.h"
-#define EXFAT_MKMODE(a,m) ((m & (a & ATTR_RO ? LINUX_S_IRUGO|LINUX_S_IXUGO : LINUX_S_IRWXUGO)) | (a & ATTR_DIR ? LINUX_S_IFDIR : LINUX_S_IFREG))
+#define EXFAT_MKMODE(a,m) ((m & ((a & ATTR_RO) ? LINUX_S_IRUGO|LINUX_S_IXUGO : LINUX_S_IRWXUGO)) | ((a & ATTR_DIR) ? LINUX_S_IFDIR : LINUX_S_IFREG))
struct exfat_dir_struct
{
struct exfat_super_block*boot_sector;
@@ -106,7 +106,6 @@ static int exfat_ucstoutf8(iconv_t cd, const unsigned char *ins, const unsigned
#define ATTR_SYS 4 /* system */
#define ATTR_DIR 16 /* directory */
#define ATTR_ARCH 32 /* archived */
-#define EXFAT_MKMODE(a,m) ((m & (a & ATTR_RO ? LINUX_S_IRUGO|LINUX_S_IXUGO : LINUX_S_IRWXUGO)) | (a & ATTR_DIR ? LINUX_S_IFDIR : LINUX_S_IFREG))
static unsigned int exfat_get_next_cluster(disk_t *disk_car,const partition_t *partition, const int offset, const unsigned int cluster)
{