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);
(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);