summaryrefslogtreecommitdiffstats
path: root/src/parti386.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/parti386.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/parti386.c')
-rw-r--r--src/parti386.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/parti386.c b/src/parti386.c
index dd4f021..962115e 100644
--- a/src/parti386.c
+++ b/src/parti386.c
@@ -216,21 +216,21 @@ arch_fnct_t arch_i386= {
.part_name="Intel",
.part_name_option="partition_i386",
.msg_part_type="*=Primary bootable P=Primary L=Logical E=Extended D=Deleted",
- .read_part=read_part_i386,
- .write_part=write_part_i386,
- .init_part_order=init_part_order_i386,
- .get_geometry_from_mbr=get_geometry_from_i386mbr,
- .check_part=check_part_i386,
- .write_MBR_code=write_MBR_code_i386,
- .set_prev_status=set_prev_status_i386,
- .set_next_status=set_next_status_i386,
- .test_structure=test_structure_i386,
- .get_part_type=get_part_type_i386,
- .set_part_type=set_part_type_i386,
- .init_structure=init_structure_i386,
- .erase_list_part=erase_list_part_i386,
- .get_partition_typename=get_partition_typename_i386,
- .is_part_known=is_part_known_i386
+ .read_part=&read_part_i386,
+ .write_part=&write_part_i386,
+ .init_part_order=&init_part_order_i386,
+ .get_geometry_from_mbr=&get_geometry_from_i386mbr,
+ .check_part=&check_part_i386,
+ .write_MBR_code=&write_MBR_code_i386,
+ .set_prev_status=&set_prev_status_i386,
+ .set_next_status=&set_next_status_i386,
+ .test_structure=&test_structure_i386,
+ .get_part_type=&get_part_type_i386,
+ .set_part_type=&set_part_type_i386,
+ .init_structure=&init_structure_i386,
+ .erase_list_part=&erase_list_part_i386,
+ .get_partition_typename=&get_partition_typename_i386,
+ .is_part_known=&is_part_known_i386
};
static uint64_t C_H_S2offset(const disk_t *disk_car,const unsigned int C, const unsigned int H, const unsigned int S)