summaryrefslogtreecommitdiffstats
path: root/src/H5Osdtyp.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-28 17:14:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-28 17:14:35 (GMT)
commita39e0ef324c57105c09e84f4aee878595a320a41 (patch)
tree401eaf34c9864657784d486b79c2cae1da1b0614 /src/H5Osdtyp.c
parente8d5c25431dd926d04f35cc06ab2027db86869cf (diff)
downloadhdf5-a39e0ef324c57105c09e84f4aee878595a320a41.zip
hdf5-a39e0ef324c57105c09e84f4aee878595a320a41.tar.gz
hdf5-a39e0ef324c57105c09e84f4aee878595a320a41.tar.bz2
[svn-r47] Finished flashing out the H5M* functions calls. Cleaned up non-compiling
source. Finished adding in remainder of H5Osdtyp.c functions.
Diffstat (limited to 'src/H5Osdtyp.c')
-rw-r--r--src/H5Osdtyp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/H5Osdtyp.c b/src/H5Osdtyp.c
index 3c881a1..79e3db2 100644
--- a/src/H5Osdtyp.c
+++ b/src/H5Osdtyp.c
@@ -179,7 +179,7 @@ H5O_sim_dtype_fast (const H5G_entry_t *ent, void *mesg)
if (!sdtype)
if((sdtype = H5MM_xcalloc (1, sizeof(H5O_sim_dtype_t)))!=NULL)
{
- p=&(uint8 *)ent->cache.sdata.nt;
+ p=(const uint8 *)&ent->cache.sdata.nt;
sdtype->length=*p++;
sdtype->arch=*p++;
UINT16DECODE(p,sdtype->type);
@@ -213,7 +213,7 @@ static hbool_t
H5O_sim_dtype_cache (H5G_entry_t *ent, const void *mesg)
{
const H5O_sim_dtype_t *sdtype = (const H5O_sim_dtype_t *)mesg;
- const uint8 *p;
+ uint8 *p;
hbool_t modified = BFALSE;
FUNC_ENTER (H5O_sim_dtype_cache, NULL, BFAIL);
@@ -238,22 +238,22 @@ H5O_sim_dtype_cache (H5G_entry_t *ent, const void *mesg)
} /* end if */
else
{
- if(ent->cache.sdata.length= sdtype->length)
+ if(ent->cache.sdata.nt.length != sdtype->length)
{
modified = BTRUE;
- ent->cache.sdata.length = sdtype->length;
+ ent->cache.sdata.nt.length = sdtype->length;
} /* end if */
- if (ent->cache.sdata.arch != sdtype->arch)
+ if (ent->cache.sdata.nt.arch != sdtype->arch)
{
modified = BTRUE;
- ent->cache.sdata.arch = sdtype->arch;
+ ent->cache.sdata.nt.arch = sdtype->arch;
} /* end if */
- if (ent->cache.sdata.type != sdtype->type)
+ if (ent->cache.sdata.nt.type != sdtype->type)
{
modified = BTRUE;
- ent->cache.sdata.type = sdtype->type;
+ ent->cache.sdata.nt.type = sdtype->type;
} /* end if */
} /* end else */
@@ -288,7 +288,7 @@ H5O_sim_dtype_copy (const void *mesg, void *dest)
if (!dst) dst = H5MM_xcalloc (1, sizeof(H5O_sim_dtype_t));
/* copy */
- HDmempcy(dst,src,sizeof(H5O_sim_dtype_t));
+ HDmemcpy(dst,src,sizeof(H5O_sim_dtype_t));
FUNC_LEAVE ((void*)dst);
} /* end H5O_sim_dtype_copy() */