diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-06-24 16:07:45 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2021-06-25 15:12:41 +0200 |
commit | 8348086b48af0cbabe4cf2b64992ced6561ea50c (patch) | |
tree | a77cb51107c1b67c9fc1e1c08d45ef1947a95e80 /include/sqfs/predef.h | |
parent | 0880db76afe85391430c547a67bad54b655a66e1 (diff) |
Remove casual un-const casting in various places
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/sqfs/predef.h')
-rw-r--r-- | include/sqfs/predef.h | 6 |
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; } |