diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2022-08-17 23:31:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-17 23:31:54 (GMT) |
commit | e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681 (patch) | |
tree | 4c8b59017d93c74501fbbddb20282939d70e8289 /test/enum.c | |
parent | 9304f277e8597d39ac60b9d14b309c3462938d1c (diff) | |
download | hdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.zip hdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.tar.gz hdf5-e6f16c0ec2f643218b1ba527bb92fc1bb7b2e681.tar.bz2 |
Fixes codespell issues (#2032)
* Fixes codespell issues
* Fixed another typo
Diffstat (limited to 'test/enum.c')
-rw-r--r-- | test/enum.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/enum.c b/test/enum.c index f180f79..d359523 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 */ |