summaryrefslogtreecommitdiff
path: root/target/linux/ar7/files
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2007-09-20 19:33:00 +0000
committerMatteo Croce <rootkit85@yahoo.it>2007-09-20 19:33:00 +0000
commite2148dbae17cce50e6d4ec07f52acd65f2e02089 (patch)
tree46fac127b1353484115c06d8bb98c89a01fbdb9d /target/linux/ar7/files
parent8d162264af02231b9c452c0d6d38e3a8b08e4a4a (diff)
downloadmtk-20170518-e2148dbae17cce50e6d4ec07f52acd65f2e02089.zip
mtk-20170518-e2148dbae17cce50e6d4ec07f52acd65f2e02089.tar.gz
mtk-20170518-e2148dbae17cce50e6d4ec07f52acd65f2e02089.tar.bz2
replace deprecated u_char with u8
SVN-Revision: 8887
Diffstat (limited to 'target/linux/ar7/files')
-rw-r--r--target/linux/ar7/files/drivers/mtd/ar7part.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar7/files/drivers/mtd/ar7part.c b/target/linux/ar7/files/drivers/mtd/ar7part.c
index 8bfd571..a7b42c9 100644
--- a/target/linux/ar7/files/drivers/mtd/ar7part.c
+++ b/target/linux/ar7/files/drivers/mtd/ar7part.c
@@ -71,7 +71,7 @@ static int create_mtd_partitions(struct mtd_info *master,
do { /* Try 10 blocks starting from master->erasesize */
offset = pre_size;
master->read(master, offset,
- sizeof(header), &len, (u_char *)&header);
+ sizeof(header), &len, (u8 *)&header);
if (!strncmp((char *)&header, "TIENV0.8", 8))
ar7_parts[1].offset = pre_size;
if (header.checksum == LOADER_MAGIC1)
@@ -93,7 +93,7 @@ static int create_mtd_partitions(struct mtd_info *master,
while (header.length) {
offset += sizeof(header) + header.length;
master->read(master, offset, sizeof(header),
- &len, (u_char *)&header);
+ &len, (u8 *)&header);
}
root_offset = offset + sizeof(header) + 4;
break;
@@ -101,7 +101,7 @@ static int create_mtd_partitions(struct mtd_info *master,
while (header.length) {
offset += sizeof(header) + header.length;
master->read(master, offset, sizeof(header),
- &len, (u_char *)&header);
+ &len, (u8 *)&header);
}
root_offset = offset + sizeof(header) + 4 + 0xff;
root_offset &= ~(u32)0xff;
@@ -112,7 +112,7 @@ static int create_mtd_partitions(struct mtd_info *master,
}
master->read(master, root_offset,
- sizeof(header), &len, (u_char *)&header);
+ sizeof(header), &len, (u8 *)&header);
if (header.checksum != SQUASHFS_MAGIC) {
root_offset += master->erasesize - 1;
root_offset &= ~(master->erasesize - 1);