summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/h5ff_client_M6.2_demo.c4
-rw-r--r--examples/h5ff_client_M7.2-pep_demo.c10
-rw-r--r--examples/h5ff_client_time_datasets.c2
-rw-r--r--examples/h5ff_client_timings.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/examples/h5ff_client_M6.2_demo.c b/examples/h5ff_client_M6.2_demo.c
index 91d61f1..0188a65 100644
--- a/examples/h5ff_client_M6.2_demo.c
+++ b/examples/h5ff_client_M6.2_demo.c
@@ -871,7 +871,7 @@ append_dataset2( hid_t obj_id, const char* dset_name, hid_t tr_id, hid_t rc_id,
hid_t memspace_id;
nCols = current_size[1];
- data = (int *)calloc( nCols, sizeof(int) ); // Write 1 column
+ data = (int *)calloc( nCols, sizeof(int) ); assert( data != NULL );
/* set data value, create memory data space, then select the element to update */
for ( i = 0; i < nCols; i++ ) {
@@ -1007,7 +1007,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, const char* grp_path, int
} else {
totalSize = current_size[0] * current_size[1];
}
- data = (int *)calloc( totalSize, sizeof(int) );
+ data = (int *)calloc( totalSize, sizeof(int) ); assert( data != NULL );
ret = H5Dread_ff( dset_id, H5T_NATIVE_INT, space_id, space_id, H5P_DEFAULT, data, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
diff --git a/examples/h5ff_client_M7.2-pep_demo.c b/examples/h5ff_client_M7.2-pep_demo.c
index 3183e3c..7d5db8a 100644
--- a/examples/h5ff_client_M7.2-pep_demo.c
+++ b/examples/h5ff_client_M7.2-pep_demo.c
@@ -580,9 +580,9 @@ int main( int argc, char **argv ) {
/* Find entries in first Map, then use to create value vectors for all three Map objects - we know they have same size. */
ret = H5Mget_count_ff( map_l_id, &map_entries, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
- value_l = (int *)calloc( map_entries, sizeof(int) );
- value_p = (int *)calloc( map_entries, sizeof(int) );
- value_s = (int *)calloc( map_entries, sizeof(int) );
+ value_l = (int *)calloc( map_entries, sizeof(int) ); assert( value_l != NULL );
+ value_p = (int *)calloc( map_entries, sizeof(int) ); assert( value_p != NULL );
+ value_s = (int *)calloc( map_entries, sizeof(int) ); assert( value_s != NULL );
/* Read Datasets and then Maps in all 3 Groups, measuring time it takes to read data for each*/
@@ -1139,7 +1139,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, const char* grp_path, int
assert( nDims == 1 );
totalSize = current_size[0];
- data = (int *)calloc( totalSize, sizeof(int) );
+ data = (int *)calloc( totalSize, sizeof(int) ); assert( data != NULL );
ret = H5Dread_ff( dset_id, H5T_NATIVE_INT, space_id, space_id, H5P_DEFAULT, data, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
@@ -1169,7 +1169,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, const char* grp_path, int
assert( map_id >= 0 );
ret = H5Mget_count_ff( map_id, &totalCount, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
- value = (int *)calloc( totalCount, sizeof(int) );
+ value = (int *)calloc( totalCount, sizeof(int) ); assert( value != NULL );
for ( i = 0; i < totalCount; i++ ) {
ret = H5Mget_ff( map_id, H5T_STD_I32LE, &i, H5T_STD_I32LE, &value[i], H5P_DEFAULT, rc_id, H5_EVENT_STACK_NULL );
diff --git a/examples/h5ff_client_time_datasets.c b/examples/h5ff_client_time_datasets.c
index 46d4da9..2952750 100644
--- a/examples/h5ff_client_time_datasets.c
+++ b/examples/h5ff_client_time_datasets.c
@@ -777,7 +777,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, int my_rank )
assert( nDims == 2 );
totalSize = current_size[0] * current_size[1];
- data = (uint64_t *)calloc( totalSize, sizeof(uint64_t) );
+ data = (uint64_t *)calloc( totalSize, sizeof(uint64_t) ); assert( data != NULL );
dxpl_id = H5Pcreate( H5P_DATASET_XFER );
if ( enable_checksums ) {
diff --git a/examples/h5ff_client_timings.c b/examples/h5ff_client_timings.c
index af32e1a..b246db7 100644
--- a/examples/h5ff_client_timings.c
+++ b/examples/h5ff_client_timings.c
@@ -175,7 +175,7 @@ int main( int argc, char **argv ) {
/* Create the memory buffer that will be used in many places - both for writing and reading */
bytesPerCell = sizeof( uint64_t );
- mbuf = (uint64_t *) calloc( (rows_per_rank * comm_size * cols_per_row), bytesPerCell );
+ mbuf = (uint64_t *) calloc( (rows_per_rank * comm_size * cols_per_row), bytesPerCell ); assert( mbuf != NULL );
/****
* Transaction 2: Rank 0 creates H5Objects in the container
@@ -860,7 +860,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, const char* grp_path, int
assert( nDims == 2 );
totalSize = current_size[0] * current_size[1];
- data = (uint64_t *)calloc( totalSize, sizeof(uint64_t) );
+ data = (uint64_t *)calloc( totalSize, sizeof(uint64_t) ); assert( data != NULL );
ret = H5Dread_ff( dset_id, H5T_NATIVE_UINT64, space_id, space_id, H5P_DEFAULT, data, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
@@ -896,7 +896,7 @@ print_container_contents( hid_t file_id, hid_t rc_id, const char* grp_path, int
assert( map_id >= 0 );
ret = H5Mget_count_ff( map_id, &totalCount, rc_id, H5_EVENT_STACK_NULL ); ASSERT_RET;
- value = (uint64_t *)calloc( totalCount, sizeof(uint64_t) );
+ value = (uint64_t *)calloc( totalCount, sizeof(uint64_t) ); assert( value != NULL );
for ( u = 0; u < totalCount; u++ ) {
ret = H5Mget_ff( map_id, H5T_NATIVE_UINT64, &u, H5T_NATIVE_UINT64, &value[u], H5P_DEFAULT, rc_id, H5_EVENT_STACK_NULL );