diff options
author | Quincey Koziol <koziol@lbl.gov> | 2018-12-19 22:54:02 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@lbl.gov> | 2018-12-19 22:54:02 (GMT) |
commit | 3587fe2638c45c087e970a3bdca07a9ffa7d435c (patch) | |
tree | 5afd3c71f6baabc1083a4579cb42bcc59dd8e56c /src/H5Gdeprec.c | |
parent | 371ed6a518efad31dc806cbc91f8da31e4643f66 (diff) | |
download | hdf5-3587fe2638c45c087e970a3bdca07a9ffa7d435c.zip hdf5-3587fe2638c45c087e970a3bdca07a9ffa7d435c.tar.gz hdf5-3587fe2638c45c087e970a3bdca07a9ffa7d435c.tar.bz2 |
Switch return value to -1
Diffstat (limited to 'src/H5Gdeprec.c')
-rw-r--r-- | src/H5Gdeprec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Gdeprec.c b/src/H5Gdeprec.c index 9178606..3e0574c 100644 --- a/src/H5Gdeprec.c +++ b/src/H5Gdeprec.c @@ -774,17 +774,17 @@ H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) ssize_t op_ret; /* Return value from operation */ int ret_value; /* Return value */ - FUNC_ENTER_API(FAIL) + FUNC_ENTER_API(-1) H5TRACE4("Is", "i*sz*s", loc_id, name, bufsize, buf); if(!name || !*name) - HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no name specified") + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, -1, "no name specified") if(bufsize > 0 && !buf) - HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no buffer specified") + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, -1, "no buffer specified") /* Set up collective metadata if appropriate */ if(H5CX_set_loc(loc_id) < 0) - HGOTO_ERROR(H5E_SYM, H5E_CANTSET, FAIL, "can't set collective metadata read info") + HGOTO_ERROR(H5E_SYM, H5E_CANTSET, -1, "can't set collective metadata read info") /* Fill in location struct fields */ loc_params.type = H5VL_OBJECT_BY_NAME; @@ -794,11 +794,11 @@ H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf) /* Get the location object */ if(NULL == (vol_obj = H5VL_vol_object(loc_id))) - HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid location identifier") + HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, -1, "invalid location identifier") /* Get the comment */ if(H5VL_object_optional(vol_obj, H5P_DATASET_XFER_DEFAULT, H5_REQUEST_NULL, H5VL_NATIVE_OBJECT_GET_COMMENT, &loc_params, buf, bufsize, &op_ret) < 0) - HGOTO_ERROR(H5E_SYM, H5E_CANTGET, FAIL, "unable to get comment value") + HGOTO_ERROR(H5E_SYM, H5E_CANTGET, -1, "unable to get comment value") /* Set return value */ ret_value = (int)op_ret; |