X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fgraph_ident.c;h=e2d3cd68c9f76c05f399b50c1099cf03289da076;hb=17568ea3f6ee71873e6758497e836b43b784e5c0;hp=3635990d8feb68a59960776c81f8d4acc872ba2c;hpb=84dc0c7ed47ead2115755a93ff4cab9e8bf10a9f;p=collection4.git diff --git a/src/graph_ident.c b/src/graph_ident.c index 3635990..e2d3cd6 100644 --- a/src/graph_ident.c +++ b/src/graph_ident.c @@ -569,6 +569,8 @@ static int ident_data_to_json__get_ident_data ( } yajl_gen_map_close (data->handler); + + return (0); } /* }}} int ident_data_to_json__get_ident_data */ /* Called for each DS name */ @@ -602,14 +604,20 @@ int ident_data_to_json (const graph_ident_t *ident, /* {{{ */ yajl_gen handler) { ident_data_to_json__data_t data; + int status; data.begin = begin; data.end = end; data.handler = handler; /* Iterate over all DS names */ - return (data_provider_get_ident_ds_names (ident, - ident_data_to_json__get_ds_name, &data)); + status = data_provider_get_ident_ds_names (ident, + ident_data_to_json__get_ds_name, &data); + if (status != 0) + fprintf (stderr, "ident_data_to_json: data_provider_get_ident_ds_names " + "failed with status %i\n", status); + + return (status); } /* }}} int ident_data_to_json */ /* }}} ident_data_to_json */