summaryrefslogtreecommitdiffstats
path: root/src/file_zip.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/file_zip.c
parent8ab840414394e1e8454413485c578d75fd8ab68f (diff)
constify more variables
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index 791c633..864d7dc 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -336,7 +336,7 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
Typically used in OOO documents
Search ZIP_DATA_DESCRIPTOR */
static const unsigned char zip_data_desc_header[4]= {0x50, 0x4B, 0x07, 0x08};
- int64_t pos = file_get_pos(fr->handle, zip_data_desc_header, 4);
+ const int64_t pos = file_get_pos(fr->handle, zip_data_desc_header, 4);
#ifdef DEBUG_ZIP
log_trace("Searched footer, got length %lli\n", (long long int)pos);
#endif
@@ -435,7 +435,7 @@ static int zip64_parse_end_central_dir(file_recovery_t *fr)
if (dir.end_size > 0)
{
- uint64_t len = le64(dir.end_size);
+ const uint64_t len = le64(dir.end_size);
if (fseek(fr->handle, len, SEEK_CUR) == -1)
{
#ifdef DEBUG_ZIP
@@ -475,7 +475,7 @@ static int zip_parse_end_central_dir(file_recovery_t *fr)
if (dir.comment_length)
{
- uint16_t len = le16(dir.comment_length);
+ const uint16_t len = le16(dir.comment_length);
if (fseek(fr->handle, len, SEEK_CUR) == -1)
{
#ifdef DEBUG_ZIP