summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
commit8ab840414394e1e8454413485c578d75fd8ab68f (patch)
tree4d7cb333d48e5cd71bdcde328db0bff816d8f988 /src/adv.c
parent7ff26a5fcd838b0ac9d6a3a4e82f802d0b752d81 (diff)
Constify some variables
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);