projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84dc0c7
)
src/graph_ident.c: Fix minor issues.
author
Florian Forster
<ff@octo.it>
Thu, 9 Sep 2010 07:35:35 +0000
(09:35 +0200)
committer
Florian Forster
<ff@octo.it>
Thu, 9 Sep 2010 07:35:35 +0000
(09:35 +0200)
src/graph_ident.c
patch
|
blob
|
history
diff --git
a/src/graph_ident.c
b/src/graph_ident.c
index
3635990
..
e2d3cd6
100644
(file)
--- 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);
}
yajl_gen_map_close (data->handler);
+
+ return (0);
} /* }}} int ident_data_to_json__get_ident_data */
/* Called for each DS name */
} /* }}} 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;
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 */
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 */
} /* }}} int ident_data_to_json */
/* }}} ident_data_to_json */