summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/adv.c b/src/adv.c
index 348d003..c2cbfea 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -355,8 +355,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
}
else if(isdigit(*current_cmd[0]))
{
- unsigned int order;
- order= atoi(*current_cmd);
+ const unsigned int order= atoi(*current_cmd);
while(*current_cmd[0]!=',' && *current_cmd[0]!='\0')
(*current_cmd)++;
for(element=list_part;element!=NULL && element->part->order!=order;element=element->next);