summaryrefslogtreecommitdiffstats
path: root/src/H5FDonion_header.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5FDonion_header.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5FDonion_header.c')
-rw-r--r--src/H5FDonion_header.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/H5FDonion_header.c b/src/H5FDonion_header.c
index 3b087fa..6feded4 100644
--- a/src/H5FDonion_header.c
+++ b/src/H5FDonion_header.c
@@ -130,9 +130,9 @@ H5FD__onion_header_decode(unsigned char *buf, H5FD_onion_header_t *header)
FUNC_ENTER_PACKAGE
- HDassert(buf != NULL);
- HDassert(header != NULL);
- HDassert(H5FD_ONION_HEADER_VERSION_CURR == header->version);
+ assert(buf != NULL);
+ assert(header != NULL);
+ assert(H5FD_ONION_HEADER_VERSION_CURR == header->version);
if (HDstrncmp((const char *)buf, H5FD_ONION_HEADER_SIGNATURE, 4))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, 0, "invalid header signature")
@@ -208,11 +208,11 @@ H5FD__onion_header_encode(H5FD_onion_header_t *header, unsigned char *buf, uint3
FUNC_ENTER_PACKAGE_NOERR
- HDassert(buf != NULL);
- HDassert(checksum != NULL);
- HDassert(header != NULL);
- HDassert(H5FD_ONION_HEADER_VERSION_CURR == header->version);
- HDassert(0 == (header->flags & 0xFF000000)); /* max three bits long */
+ assert(buf != NULL);
+ assert(checksum != NULL);
+ assert(header != NULL);
+ assert(H5FD_ONION_HEADER_VERSION_CURR == header->version);
+ assert(0 == (header->flags & 0xFF000000)); /* max three bits long */
HDmemcpy(ptr, H5FD_ONION_HEADER_SIGNATURE, 4);
ptr += 4;