From 500b5f904f74c69511a5f0a89c98dd1b2006b758 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 22 Aug 2003 08:45:40 -0500 Subject: [svn-r7389] Purpose: Code cleanup Description: Return -1 for failed group iteration instead of 1 Platforms tested: FreeBSD 4.8 (sleipnir) h5committest --- tools/h5diff/h5trav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/h5diff/h5trav.c b/tools/h5diff/h5trav.c index ba51285..b804746 100644 --- a/tools/h5diff/h5trav.c +++ b/tools/h5diff/h5trav.c @@ -159,7 +159,7 @@ static herr_t opget_info( hid_t loc_id, const char *name, void *op_data) H5G_stat_t statbuf; if (H5Gget_objinfo( loc_id, name, FALSE, &statbuf) < 0 ) - return 1; + return -1; ((info_t *)op_data)->type = statbuf.type; ((info_t *)op_data)->name = (char *)HDstrdup(name); -- cgit v0.12