summaryrefslogtreecommitdiffstats
path: root/src/adv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-10-12 20:23:24 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-10-12 20:23:24 +0200
commit5fb1156905cb0166ff3074af5817951e8b752bed (patch)
tree054f365937fc6bcdcbb416dc2fc55bf38dbf43bb /src/adv.c
parent20b02dd16415e21e57c7a36f5e12d631501d8c75 (diff)
Constify two variables in interface_adv()
Diffstat (limited to 'src/adv.c')
-rw-r--r--src/adv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/adv.c b/src/adv.c
index 02ac564..8a5513c 100644
--- a/src/adv.c
+++ b/src/adv.c
@@ -519,7 +519,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
case 'u':
case 'U':
{
- partition_t *partition=current_element->part;
+ const partition_t *partition=current_element->part;
if(partition->sb_offset!=0 && partition->sb_size>0)
{
io_redir_add_redir(disk_car,
@@ -548,7 +548,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
case 'l':
case 'L':
{
- partition_t *partition=current_element->part;
+ const partition_t *partition=current_element->part;
if(partition->sb_offset!=0 && partition->sb_size>0)
{
io_redir_add_redir(disk_car,
@@ -570,7 +570,7 @@ void interface_adv(disk_t *disk_car, const int verbose,const int dump_ind, const
if(is_linux(current_element->part))
{
list_part_t *list_sb=search_superblock(disk_car,current_element->part,verbose,dump_ind,1);
- interface_superblock(disk_car,list_sb,current_cmd);
+ interface_superblock(disk_car, list_sb, current_cmd);
part_free_list(list_sb);
}
if(is_hfs(current_element->part) || is_hfsp(current_element->part))