aboutsummaryrefslogtreecommitdiff
path: root/src/RestoreFile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RestoreFile.c')
-rw-r--r--src/RestoreFile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RestoreFile.c b/src/RestoreFile.c
index eec8999..9207000 100644
--- a/src/RestoreFile.c
+++ b/src/RestoreFile.c
@@ -74,7 +74,7 @@ int GetCommonAttributes (cGH *GH, IOFile ifp, int unchunked, int *index,
/* retrieve the name attribute */
i = IOreadAttributeInfo (ifp, "name", &atype, &asize);
- if (i < 0 || (atype != BYTE && atype != CHAR) || asize >= sizeof (fullname)) {
+ if (i < 0 || atype != FLEXIO_CHAR || asize >= sizeof (fullname)) {
CCTK_WARN (2, "Can't read name attribute");
return (1);
}
@@ -90,7 +90,7 @@ int GetCommonAttributes (cGH *GH, IOFile ifp, int unchunked, int *index,
/* read and verify the group name */
i = IOreadAttributeInfo (ifp, "groupname", &atype, &asize);
- if (i < 0 || (atype != BYTE && atype != CHAR) || asize >= sizeof (groupname_stored)) {
+ if (i < 0 || atype != FLEXIO_CHAR || asize >= sizeof (groupname_stored)) {
sprintf (msg, "Can't read groupname attribute of '%s'", fullname);
CCTK_WARN (2, msg);
return (1);
@@ -232,7 +232,7 @@ int GetChunkAttributes (cGH *GH, IOFile ifp, int index)
/* retrieve the name attribute */
i = IOreadAttributeInfo (ifp, "name", &atype, &asize);
- if (i < 0 || (atype != BYTE && atype != CHAR) || asize >= sizeof (fullname)) {
+ if (i < 0 || atype != FLEXIO_CHAR || asize >= sizeof (fullname)) {
CCTK_WARN (2, "Can't read name attribute");
return (1);
}