summaryrefslogtreecommitdiffstats
path: root/src/ext2_dir.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/ext2_dir.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/ext2_dir.c')
-rw-r--r--src/ext2_dir.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ext2_dir.c b/src/ext2_dir.c
index c12fcf5..f3dc4a2 100644
--- a/src/ext2_dir.c
+++ b/src/ext2_dir.c
@@ -74,21 +74,21 @@ static int ext2_copy(disk_t *disk_car, const partition_t *partition, dir_data_t
static struct struct_io_manager my_struct_manager = {
.magic = EXT2_ET_MAGIC_IO_MANAGER,
.name ="TestDisk I/O Manager",
- .open = my_open,
- .close = my_close,
- .set_blksize = my_set_blksize,
- .read_blk = my_read_blk,
- .write_blk= my_write_blk,
- .flush = my_flush,
+ .open = &my_open,
+ .close = &my_close,
+ .set_blksize = &my_set_blksize,
+ .read_blk = &my_read_blk,
+ .write_blk= &my_write_blk,
+ .flush = &my_flush,
.write_byte= NULL,
#ifdef HAVE_STRUCT_STRUCT_IO_MANAGER_SET_OPTION
.set_option= NULL,
#endif
#ifdef HAVE_STRUCT_STRUCT_IO_MANAGER_READ_BLK64
- .read_blk64=my_read_blk64,
+ .read_blk64=&my_read_blk64,
#endif
#ifdef HAVE_STRUCT_STRUCT_IO_MANAGER_WRITE_BLK64
- .write_blk64=my_write_blk64,
+ .write_blk64=&my_write_blk64,
#endif
};
static int ext2_dir(disk_t *disk_car, const partition_t *partition, dir_data_t *dir_data, const unsigned long int cluster, file_info_t *dir_list);
@@ -379,8 +379,8 @@ dir_partition_t dir_partition_ext2_init(disk_t *disk_car, const partition_t *par
dir_data->param=FLAG_LIST_DELETED;
dir_data->verbose=verbose;
dir_data->capabilities=CAPA_LIST_DELETED;
- dir_data->get_dir=ext2_dir;
- dir_data->copy_file=ext2_copy;
+ dir_data->get_dir=&ext2_dir;
+ dir_data->copy_file=&ext2_copy;
dir_data->close=&dir_partition_ext2_close;
dir_data->local_dir=NULL;
dir_data->private_dir_data=ls;