summaryrefslogtreecommitdiffstats
path: root/src/partmac.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/partmac.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/partmac.c')
-rw-r--r--src/partmac.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/partmac.c b/src/partmac.c
index 5fe2053..4f08753 100644
--- a/src/partmac.c
+++ b/src/partmac.c
@@ -84,21 +84,21 @@ arch_fnct_t arch_mac=
.part_name="Mac",
.part_name_option="partition_mac",
.msg_part_type=" P=Primary D=Deleted",
- .read_part=read_part_mac,
- .write_part=write_part_mac,
- .init_part_order=init_part_order_mac,
+ .read_part=&read_part_mac,
+ .write_part=&write_part_mac,
+ .init_part_order=&init_part_order_mac,
.get_geometry_from_mbr=NULL,
- .check_part=check_part_mac,
+ .check_part=&check_part_mac,
.write_MBR_code=NULL,
- .set_prev_status=set_next_status_mac,
- .set_next_status=set_next_status_mac,
- .test_structure=test_structure_mac,
- .get_part_type=get_part_type_mac,
- .set_part_type=set_part_type_mac,
- .init_structure=init_structure_mac,
+ .set_prev_status=&set_next_status_mac,
+ .set_next_status=&set_next_status_mac,
+ .test_structure=&test_structure_mac,
+ .get_part_type=&get_part_type_mac,
+ .set_part_type=&set_part_type_mac,
+ .init_structure=&init_structure_mac,
.erase_list_part=NULL,
- .get_partition_typename=get_partition_typename_mac,
- .is_part_known=is_part_known_mac
+ .get_partition_typename=&get_partition_typename_mac,
+ .is_part_known=&is_part_known_mac
};
static unsigned int get_part_type_mac(const partition_t *partition)