From a2554bf028315eb7d0da9e2c4e3a1618a5aad01b Mon Sep 17 00:00:00 2001 From: Yusuke Nakamura Date: Sun, 5 Mar 2017 07:20:56 +0900 Subject: [PATCH] read: Add const qualifier to src of isom_box_{base|full|}common_copy(). --- core/read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/read.c b/core/read.c index 4ac054e..b3f9c03 100644 --- a/core/read.c +++ b/core/read.c @@ -103,7 +103,7 @@ static int isom_read_fullbox_common_extension( lsmash_bs_t *bs, isom_box_t *box } /* Don't copy destructor since a destructor is defined as box specific. */ -static void isom_basebox_common_copy( isom_box_t *dst, isom_box_t *src ) +static void isom_basebox_common_copy( isom_box_t *dst, const isom_box_t *src ) { dst->root = src->root; dst->file = src->file; @@ -114,7 +114,7 @@ static void isom_basebox_common_copy( isom_box_t *dst, isom_box_t *src ) dst->type = src->type; } -static void isom_fullbox_common_copy( isom_box_t *dst, isom_box_t *src ) +static void isom_fullbox_common_copy( isom_box_t *dst, const isom_box_t *src ) { dst->root = src->root; dst->file = src->file; @@ -127,7 +127,7 @@ static void isom_fullbox_common_copy( isom_box_t *dst, isom_box_t *src ) dst->flags = src->flags; } -static void isom_box_common_copy( void *dst, void *src ) +static void isom_box_common_copy( void *dst, const void *src ) { assert( LSMASH_IS_EXISTING_BOX( (isom_box_t *)dst ) && LSMASH_IS_EXISTING_BOX( (isom_box_t *)src ) ); -- 2.11.4.GIT