summaryrefslogtreecommitdiffstats
path: root/src/file_ext.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-10-21 12:14:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-10-21 12:14:14 +0200
commitea7966cef9f1d72860ee68e01b9f3ebf7fa33dc9 (patch)
tree23f85731f3da5839c05b736d4f366c7baf90f48a /src/file_ext.c
parentdf875ab304e0b09f1a451886bf8e3e098da53bab (diff)
Minor code cleanup
Diffstat (limited to 'src/file_ext.c')
-rw-r--r--src/file_ext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_ext.c b/src/file_ext.c
index d7ad79a..caa149b 100644
--- a/src/file_ext.c
+++ b/src/file_ext.c
@@ -47,7 +47,7 @@ const file_hint_t file_hint_ext2_sb= {
static void file_rename_ext(const char *old_filename)
{
unsigned char buffer[512];
- unsigned char buffer_cluster[32];
+ char buffer_cluster[32];
FILE *file;
const struct ext2_super_block *sb=(const struct ext2_super_block *)&buffer;
int buffer_size;
@@ -101,7 +101,7 @@ static int header_check_ext2_sb(const unsigned char *buffer, const unsigned int
static void file_rename_extdir(const char *old_filename)
{
unsigned char buffer[512];
- unsigned char buffer_cluster[32];
+ char buffer_cluster[32];
FILE *file;
int buffer_size;
const uint32_t *inode=(const uint32_t *)&buffer[0];