| author | Christophe Grenier <grenier@cgsecurity.org> | 2010-05-21 06:56:19 (GMT) |
|---|---|---|
| committer | Christophe Grenier <grenier@cgsecurity.org> | 2010-05-21 06:56:19 (GMT) |
| commit | 5afe3fc4208b33877b24c8fc1a045c5d2f3fbdb6 (patch) | |
| tree | 95b140d2c28a5fec7230e99e776b00e88184ef96 | |
| parent | 1041c240cd39711ca664386740e7cfb699819cb7 (diff) | |
Mark as "const" a variable
| -rw-r--r-- | src/fat_unformat.c | 2 |
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); |
