diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1999-10-15 19:04:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1999-10-15 19:04:01 (GMT) |
commit | 85f55c4c95bb7a9a07ef6c3da04a1cfea2784b99 (patch) | |
tree | dfb2fa6a39a24d69b42303d6cc9380f52fbad930 /src/H5Sall.c | |
parent | 687b25d15ccc413cd54df363f9ac57ac6e3b3718 (diff) | |
download | hdf5-85f55c4c95bb7a9a07ef6c3da04a1cfea2784b99.zip hdf5-85f55c4c95bb7a9a07ef6c3da04a1cfea2784b99.tar.gz hdf5-85f55c4c95bb7a9a07ef6c3da04a1cfea2784b99.tar.bz2 |
[svn-r1759] Corrected a few more compiler warnings.
Diffstat (limited to 'src/H5Sall.c')
-rw-r--r-- | src/H5Sall.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Sall.c b/src/H5Sall.c index 5800509..525e9e2 100644 --- a/src/H5Sall.c +++ b/src/H5Sall.c @@ -556,7 +556,7 @@ H5S_all_read(H5F_t *f, const H5O_layout_t *layout, const H5O_pline_t *pline, const H5S_t *mem_space, hid_t dxpl_id, void *buf/*out*/, hbool_t *must_convert/*out*/) { - H5S_hyper_node_t *file_node,*mem_node; /* Hyperslab node */ + H5S_hyper_node_t *file_node=NULL,*mem_node=NULL; /* Hyperslab node */ hsize_t mem_size,file_size; hssize_t file_off,mem_off; hsize_t size[H5S_MAX_RANK]; @@ -662,7 +662,7 @@ H5S_all_write(H5F_t *f, const struct H5O_layout_t *layout, const H5S_t *mem_space, hid_t dxpl_id, const void *buf, hbool_t *must_convert/*out*/) { - H5S_hyper_node_t *file_node,*mem_node; /* Hyperslab node */ + H5S_hyper_node_t *file_node=NULL,*mem_node=NULL; /* Hyperslab node */ hsize_t mem_size,file_size; hssize_t file_off,mem_off; hsize_t size[H5S_MAX_RANK]; @@ -972,7 +972,7 @@ H5S_all_select_iterate(void *buf, hid_t type_id, H5S_t *space, H5D_operator_t op hsize_t nelemts; /* Number of elements to iterate through */ void *tmp_buf; /* temporary location of the element in the buffer */ intn rank; /* Dataspace rank */ - intn index; /* Index to increment */ + intn indx; /* Index to increment */ herr_t ret_value=0; /* return value */ FUNC_ENTER (H5S_all_select_iterate, 0); @@ -1007,10 +1007,10 @@ H5S_all_select_iterate(void *buf, hid_t type_id, H5S_t *space, H5D_operator_t op nelemts--; /* Advance the coordinate (currently in C memory order) */ - index=rank-1; /* Leave the byte offset in the element alone */ - while(index>=0 && ++mem_offset[index]==mem_size[index]) { - mem_offset[index]=0; - index--; + indx=rank-1; /* Leave the byte offset in the element alone */ + while(indx>=0 && ++mem_offset[indx]==mem_size[indx]) { + mem_offset[indx]=0; + indx--; } /* end while */ } /* end while */ |