diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-18 04:10:09 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-18 04:10:09 (GMT) |
commit | 0a29514b9dd967deb64b53b39e12d6b55177b76c (patch) | |
tree | a0a2fce3c7a13fcdf1deed6c022a47bfb5a2cbf1 /test/error_test.c | |
parent | 432f394cbbc6f77861501f91dc2fc5c209f3811f (diff) | |
download | hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.zip hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.tar.gz hdf5-0a29514b9dd967deb64b53b39e12d6b55177b76c.tar.bz2 |
[svn-r8383] Purpose:
Code cleanup
Description:
Clean up lots of warnings based on those reported from the SGI compilers
as well as gcc.
Platforms tested:
SGI O3900, IRIX64 6.5 (Cheryl's SGI machine)
FreeBSD 4.9 (sleipnir) w/ & w/o parallel
h5committest
Diffstat (limited to 'test/error_test.c')
-rw-r--r-- | test/error_test.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/error_test.c b/test/error_test.c index 7e45f3d..ebe0b7e 100644 --- a/test/error_test.c +++ b/test/error_test.c @@ -186,11 +186,11 @@ test_error(hid_t file) static herr_t init_error(void) { - ssize_t cls_size = strlen(ERR_CLS_NAME)+1; - char *cls_name = malloc(strlen(ERR_CLS_NAME)+1); - ssize_t msg_size = strlen(ERR_MIN_SUBROUTINE_MSG) + 1; - char *msg = malloc(strlen(ERR_MIN_SUBROUTINE_MSG)+1); - H5E_type_t *msg_type= malloc(sizeof(H5E_type_t)); + ssize_t cls_size = (ssize_t)HDstrlen(ERR_CLS_NAME)+1; + char *cls_name = HDmalloc(strlen(ERR_CLS_NAME)+1); + ssize_t msg_size = (ssize_t)HDstrlen(ERR_MIN_SUBROUTINE_MSG) + 1; + char *msg = HDmalloc(HDstrlen(ERR_MIN_SUBROUTINE_MSG)+1); + H5E_type_t *msg_type= HDmalloc(sizeof(H5E_type_t)); if((ERR_CLS = H5Eregister_class(ERR_CLS_NAME, PROG_NAME, PROG_VERS))<0) TEST_ERROR; |