summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:08:15 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2016-01-23 10:08:15 +0100
commit87bd90afb8ce75710e31255ab4134f6493a9745e (patch)
treed4090d47474522ce20b2dd823b8008b9ce01a3a5 /src/fat_dir.c
parentf3da9d8b351348104fde78072f38c28201c78a8c (diff)
MSDOS_MKMODE() code style update
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 83fa0ca..4423a0a 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -49,7 +49,7 @@
#include "log.h"
#include "setdate.h"
-#define MSDOS_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 MSDOS_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 fat_dir_struct
{
struct fat_boot_sector*boot_sector;