summaryrefslogtreecommitdiffstats
path: root/src/photorec.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-06-01 18:06:35 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-06-01 18:06:35 +0200
commit65dbe3d4baf4d486bb8119ec197a20697ba4ca28 (patch)
tree1ed5c06affe799b8c4d8efd188a5b4197c6b9dcf /src/photorec.c
parent8ab840414394e1e8454413485c578d75fd8ab68f (diff)
constify more variables
Diffstat (limited to 'src/photorec.c')
-rw-r--r--src/photorec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/photorec.c b/src/photorec.c
index 73e00e5..e731ef2 100644
--- a/src/photorec.c
+++ b/src/photorec.c
@@ -510,8 +510,7 @@ unsigned int find_blocksize(alloc_data_t *list_search_space, const unsigned int
run_again=0;
td_list_for_each(search_walker, &list_search_space->list)
{
- alloc_data_t *tmp;
- tmp=td_list_entry(search_walker, alloc_data_t, list);
+ const alloc_data_t *tmp=td_list_entry(search_walker, alloc_data_t, list);
if(tmp->file_stat!=NULL)
{
if(tmp->start%blocksize!=*offset && blocksize>default_blocksize)