diff options
author | schnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2005-01-29 18:11:53 +0000 |
---|---|---|
committer | schnetter <schnetter@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2005-01-29 18:11:53 +0000 |
commit | f98fa73353a56af879ad76e787096ba87ea3be3b (patch) | |
tree | dcc856eed2595f1f69753758162df50f22f2b738 /src/RestoreFile.c | |
parent | 7dcb763e7c6cfe4df1549dca78d9ccfaee851ccd (diff) |
Use CCTK_BYTE instead of CCTK_CHAR.
Store CCTK_BYTE as UINT8 instead of CHAR.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@334 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/RestoreFile.c')
-rw-r--r-- | src/RestoreFile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/RestoreFile.c b/src/RestoreFile.c index 16cd117..579576a 100644 --- a/src/RestoreFile.c +++ b/src/RestoreFile.c @@ -421,7 +421,7 @@ static int GetCommonAttributes (cGH *GH, IOFile fid, int unchunked, int *vindex, /* retrieve the name attribute */ i = IOreadAttributeInfo (fid, "name", &atype, &asize); - if (i < 0 || atype != FLEXIO_CHAR || asize >= (int) sizeof (fullname)) + if (i < 0 || atype != CHAR || asize >= (int) sizeof (fullname)) { CCTK_WARN (2, "Can't read name attribute"); return (-1); @@ -439,7 +439,7 @@ static int GetCommonAttributes (cGH *GH, IOFile fid, int unchunked, int *vindex, /* read and verify the group name */ i = IOreadAttributeInfo (fid, "groupname", &atype, &asize); - if (i < 0 || atype != FLEXIO_CHAR || + if (i < 0 || atype != CHAR || (unsigned int) asize >= sizeof (groupname_stored)) { CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING, @@ -536,8 +536,8 @@ static int GetCommonAttributes (cGH *GH, IOFile fid, int unchunked, int *vindex, group_static_data.vartype == CCTK_VARIABLE_REAL) || (vartype_stored == FLEXIO_INT && group_static_data.vartype == CCTK_VARIABLE_INT) || - (vartype_stored == FLEXIO_CHAR && - group_static_data.vartype == CCTK_VARIABLE_CHAR) || + (vartype_stored == FLEXIO_BYTE && + group_static_data.vartype == CCTK_VARIABLE_BYTE) || #if 0 /* FIXME: Don't know how to support COMPLEX type too !! */ (vartype_stored == FLEXIO_REAL && @@ -647,7 +647,7 @@ static int GetChunkAttributes (IOFile fid, int vindex) /* retrieve the name attribute */ i = IOreadAttributeInfo (fid, "name", &atype, &asize); - if (i < 0 || atype != FLEXIO_CHAR || asize >= (int) sizeof (fullname)) + if (i < 0 || atype != CHAR || asize >= (int) sizeof (fullname)) { CCTK_WARN (2, "Can't read name attribute"); return (-1); |