summaryrefslogtreecommitdiffstats
path: root/src/ewf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-03 18:08:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-03 18:08:49 +0200
commita2736fe5ebd1e39a22ed32ac06177a2bc7d014ce (patch)
tree62bfd51077aa81cb13f021f1dcc16f7d7cb6b78d /src/ewf.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 7d7c3d6..7bf502c 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -296,13 +296,13 @@ disk_t *fewf_init(const char *device, const int mode)
disk->arch=&arch_none;
disk->device=strdup(device);
disk->data=data;
- 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->sync=fewf_sync;
+ 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->sync=&fewf_sync;
disk->access_mode=(data->mode&TESTDISK_O_RDWR);
- disk->clean=fewf_clean;
+ disk->clean=&fewf_clean;
#if defined( HAVE_LIBEWF_V2_API ) || defined( LIBEWF_GET_BYTES_PER_SECTOR_HAVE_TWO_ARGUMENTS )
{
uint32_t bytes_per_sector = 0;