summaryrefslogtreecommitdiffstats
path: root/test/enum.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-08-18 17:48:17 (GMT)
committerGitHub <noreply@github.com>2022-08-18 17:48:17 (GMT)
commit82ebc9c370164931861f0d174e2b17a109478665 (patch)
treeac35dc2aca63a1cb8d8e9f0562eb76f94f71804d /test/enum.c
parentfab27c25291d7f0b2d0a585178757dddddba1ace (diff)
downloadhdf5-82ebc9c370164931861f0d174e2b17a109478665.zip
hdf5-82ebc9c370164931861f0d174e2b17a109478665.tar.gz
hdf5-82ebc9c370164931861f0d174e2b17a109478665.tar.bz2
Spelling fixes for codespell (#2038)
* Spelling fixes for codespell * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/enum.c')
-rw-r--r--test/enum.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/enum.c b/test/enum.c
index 512fd9d..5695a79 100644
--- a/test/enum.c
+++ b/test/enum.c
@@ -541,7 +541,7 @@ test_value_dsnt_exist(void)
hid_t datatype_id = (-1); /* identifiers */
int val;
- char nam[100];
+ char name[100];
size_t size = 100;
TESTING("for non-existing name and value");
/* Turn off error reporting since we expect failure in this test */
@@ -556,7 +556,7 @@ test_value_dsnt_exist(void)
if (H5Tenum_valueof(datatype_id, "SAX", &val) >= 0)
goto error;
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
val = 2;
@@ -571,17 +571,17 @@ test_value_dsnt_exist(void)
/* This call should fail since we did not create a member with value = 3*/
val = 3;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 11*/
val = 11;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we did not create a member with value = 0*/
val = 0;
- if (H5Tenum_nameof(datatype_id, &val, nam, size) >= 0)
+ if (H5Tenum_nameof(datatype_id, &val, name, size) >= 0)
goto error;
/* This call should fail since we do not have SAX name in the type */