summaryrefslogtreecommitdiffstats
path: root/src/chgtypen.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-27 08:53:11 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-27 08:53:11 +0200
commitf2ca5ca1e1e7ef9b641c43b2ca4896fc2eaa2a2b (patch)
tree8a82eebcc63968cdb0e7a157ee6e89c8c690bffb /src/chgtypen.c
parent36aa8d5907bf903ae4e919fbeec6b26d322514d8 (diff)
Avoid "return function()" in function returning void
Diffstat (limited to 'src/chgtypen.c')
-rw-r--r--src/chgtypen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chgtypen.c b/src/chgtypen.c
index ef9e8b3..b28d68e 100644
--- a/src/chgtypen.c
+++ b/src/chgtypen.c
@@ -363,7 +363,10 @@ static void gpt_change_part_type(const disk_t *disk_car, partition_t *partition)
void change_part_type(const disk_t *disk_car,partition_t *partition, char **current_cmd)
{
if(*current_cmd!=NULL)
- return change_part_type_cli(disk_car, partition, current_cmd);
+ {
+ change_part_type_cli(disk_car, partition, current_cmd);
+ return;
+ }
if(partition->arch==NULL)
{
log_error("change_part_type arch==NULL\n");