summaryrefslogtreecommitdiff
authorChristophe Grenier <grenier@cgsecurity.org>2010-05-21 06:56:19 (GMT)
committer Christophe Grenier <grenier@cgsecurity.org>2010-05-21 06:56:19 (GMT)
commit5afe3fc4208b33877b24c8fc1a045c5d2f3fbdb6 (patch)
tree95b140d2c28a5fec7230e99e776b00e88184ef96
parent1041c240cd39711ca664386740e7cfb699819cb7 (diff)
Mark as "const" a variable
Diffstat
-rw-r--r--src/fat_unformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fat_unformat.c b/src/fat_unformat.c
index 0b39f58..00ac269 100644
--- a/src/fat_unformat.c
+++ b/src/fat_unformat.c
@@ -91,7 +91,7 @@ static int pfind_sectors_per_cluster(disk_t *disk, partition_t *partition, const
if(memcmp(buffer, ". ", 8+3)==0 &&
memcmp(&buffer[0x20], ".. ", 8+3)==0)
{
- unsigned long int cluster=(buffer[0*0x20+0x15]<<24) + (buffer[0*0x20+0x14]<<16) +
+ const unsigned long int cluster=(buffer[0*0x20+0x15]<<24) + (buffer[0*0x20+0x14]<<16) +
(buffer[0*0x20+0x1B]<<8) + buffer[0*0x20+0x1A];
log_info("sector %lu, cluster %lu\n",
(unsigned long)(offset/disk->sector_size), cluster);