@@ -101,19 +101,19 @@ test_json_struct_metadata_get_blob(void)
101101{
102102 int ret ;
103103 char metadata [128 ];
104- const char * json ;
104+ char * json ;
105105 tsk_size_t json_buffer_length ;
106- const char * blob ;
106+ char * blob ;
107107 tsk_size_t blob_length ;
108108 uint8_t * bytes ;
109109 tsk_size_t metadata_length ;
110110 size_t header_length ;
111111 size_t json_length ;
112112 size_t payload_length ;
113113 size_t total_length ;
114- const char json_payload [] = "{\"a\":1}" ;
115- const uint8_t binary_payload [] = { 0x01 , 0x02 , 0x03 , 0x04 };
116- const uint8_t empty_payload [] = { 0 };
114+ char json_payload [] = "{\"a\":1}" ;
115+ uint8_t binary_payload [] = { 0x01 , 0x02 , 0x03 , 0x04 };
116+ uint8_t empty_payload [] = { 0 };
117117
118118 bytes = (uint8_t * ) metadata ;
119119 header_length = 4 + 1 + 8 + 8 ;
@@ -135,7 +135,7 @@ test_json_struct_metadata_get_blob(void)
135135 ret = tsk_json_struct_metadata_get_blob (
136136 metadata , metadata_length , & json , & json_buffer_length , & blob , & blob_length );
137137 CU_ASSERT_EQUAL (ret , 0 );
138- CU_ASSERT_PTR_EQUAL (json , (const char * ) bytes + header_length );
138+ CU_ASSERT_PTR_EQUAL (json , (char * ) bytes + header_length );
139139 CU_ASSERT_EQUAL (json_buffer_length , (tsk_size_t ) json_length );
140140 if (json_length > 0 ) {
141141 CU_ASSERT_EQUAL (memcmp (json , json_payload , json_length ), 0 );
@@ -152,7 +152,7 @@ test_json_struct_metadata_get_blob(void)
152152 ret = tsk_json_struct_metadata_get_blob (
153153 metadata , metadata_length , & json , & json_buffer_length , & blob , & blob_length );
154154 CU_ASSERT_EQUAL (ret , 0 );
155- CU_ASSERT_PTR_EQUAL (json , (const char * ) bytes + header_length );
155+ CU_ASSERT_PTR_EQUAL (json , (char * ) bytes + header_length );
156156 CU_ASSERT_EQUAL (json_buffer_length , (tsk_size_t ) json_length );
157157 CU_ASSERT_EQUAL (blob_length , (tsk_size_t ) payload_length );
158158 CU_ASSERT_PTR_EQUAL (blob , bytes + header_length + json_length );
@@ -168,7 +168,7 @@ test_json_struct_metadata_get_blob(void)
168168 ret = tsk_json_struct_metadata_get_blob (
169169 metadata , metadata_length , & json , & json_buffer_length , & blob , & blob_length );
170170 CU_ASSERT_EQUAL (ret , 0 );
171- CU_ASSERT_PTR_EQUAL (json , (const char * ) bytes + header_length );
171+ CU_ASSERT_PTR_EQUAL (json , (char * ) bytes + header_length );
172172 CU_ASSERT_EQUAL (json_buffer_length , (tsk_size_t ) json_length );
173173 CU_ASSERT_EQUAL (blob_length , (tsk_size_t ) payload_length );
174174 CU_ASSERT_PTR_EQUAL (blob , bytes + header_length + json_length );
0 commit comments