summaryrefslogtreecommitdiffstats
path: root/src/ewf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-06-23 19:44:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-06-23 19:44:38 +0200
commitff35213e531f45d249a306084ab4646cbae0fc06 (patch)
tree8b07efc42002eb7aa4b930567f5043eac7228db9 /src/ewf.c
parent35ddcde3552812ec97bb39c9cfb3fe7a3eee5efd (diff)
Add parenthesis to turn off some cppcheck warnings (code style)
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 195b54f..a157f31 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -270,7 +270,7 @@ disk_t *fewf_init(const char *device, const int mode)
disk->description=fewf_description;
disk->description_short=fewf_description_short;
disk->pread=fewf_pread;
- disk->pwrite=(data->mode&TESTDISK_O_RDWR?fewf_pwrite:fewf_nopwrite);
+ disk->pwrite=((data->mode&TESTDISK_O_RDWR)?fewf_pwrite:fewf_nopwrite);
disk->sync=fewf_sync;
disk->access_mode=(data->mode&TESTDISK_O_RDWR);
disk->clean=fewf_clean;