summaryrefslogtreecommitdiffstats
path: root/src/partgpt.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/partgpt.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/partgpt.c')
-rw-r--r--src/partgpt.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/partgpt.c b/src/partgpt.c
index 3ca598c..cac4e78 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -123,20 +123,20 @@ arch_fnct_t arch_gpt=
.part_name="EFI GPT",
.part_name_option="partition_gpt",
.msg_part_type=" P=Primary D=Deleted",
- .read_part=read_part_gpt,
- .write_part=write_part_gpt,
- .init_part_order=init_part_order_gpt,
+ .read_part=&read_part_gpt,
+ .write_part=&write_part_gpt,
+ .init_part_order=&init_part_order_gpt,
.get_geometry_from_mbr=NULL,
- .check_part=check_part_gpt,
+ .check_part=&check_part_gpt,
.write_MBR_code=NULL,
- .set_prev_status=set_next_status_gpt,
- .set_next_status=set_next_status_gpt,
- .test_structure=test_structure_gpt,
+ .set_prev_status=&set_next_status_gpt,
+ .set_next_status=&set_next_status_gpt,
+ .test_structure=&test_structure_gpt,
.get_part_type=NULL,
.set_part_type=NULL,
- .init_structure=init_structure_gpt,
+ .init_structure=&init_structure_gpt,
.erase_list_part=NULL,
- .get_partition_typename=get_partition_typename_gpt,
+ .get_partition_typename=&get_partition_typename_gpt,
.is_part_known=&is_part_known_gpt
};