[svn-r15515] Fix faulty error checking in call to H5I_remove().

Add prototype to the top of app_ref.c to suppress warning.

Tested: kagiso
This commit is contained in:
Neil Fortner 2008-08-21 17:38:46 -05:00
parent c6e35f6abd
commit e9f3b20b64
2 changed files with 3 additions and 1 deletions

View File

@ -616,7 +616,7 @@ H5E_close_msg_cb(void *obj_ptr, hid_t obj_id, void *key)
/* Close the message if it is in the class being closed */
if(err_msg->cls == cls)
if(H5I_remove(obj_id) < 0)
if(NULL == H5I_remove(obj_id))
HGOTO_ERROR(H5E_ERROR, H5E_CANTREMOVE, FAIL, "unable to remove error message")
done:

View File

@ -76,6 +76,8 @@ const char *IDNAME[T_NUMCLASSES] = {
int rc[T_NUMCLASSES];
void Abrt_Handler (int sig);
/* Handler for SIGABRT - prints the reference count on each id */
void
Abrt_Handler (int UNUSED sig)