aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/inode.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-24 16:07:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-06-25 17:48:49 +0200
commita32b5a9c793e4f4a4577837b73e783386842db02 (patch)
tree314f42e3302a33a7d3da80689862bc6e1bce179c /lib/sqfs/inode.c
parent3f887a1acc6129210d1ad4a484842bd411a85c7a (diff)
Remove casual un-const casting in various places
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/inode.c')
-rw-r--r--lib/sqfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/inode.c b/lib/sqfs/inode.c
index 02d23e2..01e5ebe 100644
--- a/lib/sqfs/inode.c
+++ b/lib/sqfs/inode.c
@@ -349,8 +349,8 @@ int sqfs_inode_unpack_dir_index_entry(const sqfs_inode_generic_t *inode,
size_t index)
{
sqfs_dir_index_t ent;
+ const char *ptr;
size_t offset;
- char *ptr;
if (inode->base.type != SQFS_INODE_EXT_DIR) {
if (inode->base.type == SQFS_INODE_DIR)
@@ -360,7 +360,7 @@ int sqfs_inode_unpack_dir_index_entry(const sqfs_inode_generic_t *inode,
}
offset = 0;
- ptr = (char *)inode->extra;
+ ptr = (const char *)inode->extra;
for (;;) {
if (offset >= inode->payload_bytes_used)