diff options
-rw-r--r-- | src/H5B2int.c | 6 | ||||
-rw-r--r-- | test/swmr_remove_writer.c | 5 | ||||
-rw-r--r-- | test/swmr_writer.c | 5 |
3 files changed, 6 insertions, 10 deletions
diff --git a/src/H5B2int.c b/src/H5B2int.c index b8c5c8c..eea1ca7 100644 --- a/src/H5B2int.c +++ b/src/H5B2int.c @@ -2562,8 +2562,9 @@ HDmemset(leaf->leaf_native, 0, hdr->cls->nrec_size * hdr->node_info[0].max_nrec) /* Set parent */ leaf->parent = parent; - /* Set shadowed list next pointer */ + /* Set shadowed list next and prev pointers */ leaf->shadowed_next = NULL; + leaf->shadowed_prev = NULL; /* Allocate space on disk for the leaf */ if(HADDR_UNDEF == (node_ptr->addr = H5MF_alloc(hdr->f, H5FD_MEM_BTREE, dxpl_id, (hsize_t)hdr->node_size))) @@ -2688,8 +2689,9 @@ HDmemset(internal->node_ptrs, 0, sizeof(H5B2_node_ptr_t) * (hdr->node_info[depth /* Set parent */ internal->parent = parent; - /* Set shadowed list next pointer */ + /* Set shadowed list next and prev pointers */ internal->shadowed_next = NULL; + internal->shadowed_prev = NULL; /* Allocate space on disk for the internal node */ if(HADDR_UNDEF == (node_ptr->addr = H5MF_alloc(hdr->f, H5FD_MEM_BTREE, dxpl_id, (hsize_t)hdr->node_size))) diff --git a/test/swmr_remove_writer.c b/test/swmr_remove_writer.c index c05cf6f..0116467 100644 --- a/test/swmr_remove_writer.c +++ b/test/swmr_remove_writer.c @@ -274,10 +274,7 @@ int main(int argc, const char *argv[]) case 'r':
use_seed = 1;
temp = atoi(argv[u + 1]);
- if(temp < 0)
- usage();
- else
- random_seed = (unsigned)temp;
+ random_seed = (unsigned)temp;
u += 2;
break;
diff --git a/test/swmr_writer.c b/test/swmr_writer.c index 445932d..362e197 100644 --- a/test/swmr_writer.c +++ b/test/swmr_writer.c @@ -322,10 +322,7 @@ int main(int argc, const char *argv[]) case 'r': use_seed = 1; temp = atoi(argv[u + 1]); - if(temp < 0) - usage(); - else - random_seed = (unsigned)temp; + random_seed = (unsigned)temp; u += 2; break; |