summaryrefslogtreecommitdiffstats
path: root/src/partsun.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/partsun.c
parent3a0f3c7fbf7c39452a5d756ddb591e54ff567867 (diff)
Use explicit function adresses
See MISRA C:2004, 16.9
Diffstat (limited to 'src/partsun.c')
-rw-r--r--src/partsun.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/partsun.c b/src/partsun.c
index 15afebf..122a64a 100644
--- a/src/partsun.c
+++ b/src/partsun.c
@@ -87,21 +87,21 @@ arch_fnct_t arch_sun=
.part_name="Sun",
.part_name_option="partition_sun",
.msg_part_type=" P=Primary D=Deleted",
- .read_part=read_part_sun,
- .write_part=write_part_sun,
- .init_part_order=init_part_order_sun,
- .get_geometry_from_mbr=get_geometry_from_sunmbr,
- .check_part=check_part_sun,
+ .read_part=&read_part_sun,
+ .write_part=&write_part_sun,
+ .init_part_order=&init_part_order_sun,
+ .get_geometry_from_mbr=&get_geometry_from_sunmbr,
+ .check_part=&check_part_sun,
.write_MBR_code=NULL,
- .set_prev_status=set_next_status_sun,
- .set_next_status=set_next_status_sun,
- .test_structure=test_structure_sun,
- .get_part_type=get_part_type_sun,
- .set_part_type=set_part_type_sun,
- .init_structure=init_structure_sun,
+ .set_prev_status=&set_next_status_sun,
+ .set_next_status=&set_next_status_sun,
+ .test_structure=&test_structure_sun,
+ .get_part_type=&get_part_type_sun,
+ .set_part_type=&set_part_type_sun,
+ .init_structure=&init_structure_sun,
.erase_list_part=NULL,
- .get_partition_typename=get_partition_typename_sun,
- .is_part_known=is_part_known_sun
+ .get_partition_typename=&get_partition_typename_sun,
+ .is_part_known=&is_part_known_sun
};
static unsigned int get_part_type_sun(const partition_t *partition)