summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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;
}