summaryrefslogtreecommitdiff
path: root/include
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 /include
parent3f887a1acc6129210d1ad4a484842bd411a85c7a (diff)
Remove casual un-const casting in various places
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/sqfs/predef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sqfs/predef.h b/include/sqfs/predef.h
index 8a456d8..6296b4b 100644
--- a/include/sqfs/predef.h
+++ b/include/sqfs/predef.h
@@ -152,8 +152,10 @@ static SQFS_INLINE void sqfs_destroy(void *obj)
*/
static SQFS_INLINE void *sqfs_copy(const void *obj)
{
- if (((sqfs_object_t *)obj)->copy != NULL)
- return ((sqfs_object_t *)obj)->copy((sqfs_object_t *)obj);
+ if (((const sqfs_object_t *)obj)->copy != NULL) {
+ return ((const sqfs_object_t *)obj)->
+ copy((const sqfs_object_t *)obj);
+ }
return NULL;
}