diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-10-31 18:36:50 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-10-31 18:36:50 (GMT) |
commit | c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680 (patch) | |
tree | 636dc8559d50f7d3300513a63fd7aaa95fe1902f /src/H5VLiod_util.c | |
parent | 49ed87466d33047abff0276b319837276ee2a35b (diff) | |
download | hdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.zip hdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.tar.gz hdf5-c2641d2d1c1ee2db8c4cfb472c8f6f2b5edd1680.tar.bz2 |
[svn-r24388] switch to using Mercury 64 bit CRC algorithm instead of internal checksum algorithm.
Diffstat (limited to 'src/H5VLiod_util.c')
-rw-r--r-- | src/H5VLiod_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5VLiod_util.c b/src/H5VLiod_util.c index 52afbd5..5eef5fe 100644 --- a/src/H5VLiod_util.c +++ b/src/H5VLiod_util.c @@ -717,7 +717,7 @@ H5VL_iod_insert_new_link(iod_handle_t oh, iod_trans_id_t tid, const char *link_n { iod_kv_t kv; void *value = NULL; - const uint8_t *val_ptr = NULL; + uint8_t *val_ptr = NULL; size_t value_len; herr_t ret_value = SUCCEED; @@ -738,13 +738,13 @@ H5VL_iod_insert_new_link(iod_handle_t oh, iod_trans_id_t tid, const char *link_n } case H5L_TYPE_SOFT: { - value_len = sizeof(H5L_type_t) + strlen((char *)link_val) + 1; + value_len = sizeof(H5L_type_t) + strlen((const char *)link_val) + 1; value = malloc(value_len); val_ptr = (uint8_t *)value; memcpy(val_ptr, &link_type, sizeof(H5L_type_t)); - strcpy((char *)(val_ptr+sizeof(H5L_type_t)), (char *)link_val); + strcpy((char *)(val_ptr+sizeof(H5L_type_t)), (const char *)link_val); break; } @@ -1015,7 +1015,7 @@ H5VL_iod_verify_scratch_pad(scratch_pad sp, iod_checksum_t iod_cs) /* MSC - Need IOD */ #if 0 - computed_cs = H5checksum(&sp, sizeof(sp), NULL); + computed_cs = H5_checksum_crc64(&sp, sizeof(sp)); if(computed_cs != iod_cs) { fprintf(stderr, "Scratch pad integrity check failed. IOD cs = %u, Computed cs = %u", |