summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 285de6f)
raw | patch | inline | side by side (parent: 285de6f)
author | Florian Forster <ff@octo.it> | |
Wed, 21 Jul 2010 09:59:26 +0000 (11:59 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Wed, 21 Jul 2010 09:59:26 +0000 (11:59 +0200) |
src/action_show_graph_json.c | patch | blob | history | |
src/graph.c | patch | blob | history |
index 36de76c3aee931973a737de0edba5964f0eac16e..d36520526f5eab773858d1390a33745c9d4e03de 100644 (file)
while (buffer_size > 0)
{
- status = fwrite (buffer, buffer_size, /* nmemb = */ 1, stdout);
+ status = fwrite (buffer, /* size = */ 1,
+ /* nmemb = */ buffer_size, stdout);
if (status == 0)
return (errno);
diff --git a/src/graph.c b/src/graph.c
index f664be1367adacda63196ff4d511006fabe48b5e..b654a1f30e26edb3f8fa4983c028f23c9095d3a7 100644 (file)
--- a/src/graph.c
+++ b/src/graph.c
(unsigned char *) "select",
(unsigned int) strlen ("select"));
ident_to_json (cfg->select, handler);
+ yajl_gen_string (handler,
+ (unsigned char *) "instances",
+ (unsigned int) strlen ("instances"));
yajl_gen_array_open (handler);
for (i = 0; i < cfg->instances_num; i++)
inst_to_json (cfg->instances[i], handler);