static daemon_reply _lvmetad_send(const char *id, ...)
{
va_list ap;
- daemon_reply repl;
+ daemon_reply repl = { 0 };
daemon_request req;
unsigned num_rescans = 0;
unsigned total_usecs_waited = 0;
unsigned max_remaining_sleep_times = 1;
unsigned wait_usecs;
- int r;
retry:
req = daemon_request_make(id);
}
va_start(ap, id);
- r = daemon_request_extend_v(req, ap);
+ daemon_request_extend_v(req, ap);
va_end(ap);
- if (!r) {
- repl.error = ENOMEM;
- return repl;
- }
repl = daemon_send(_lvmetad, req);
return cn;
}
+/*
+ * FIXME: return 1 even if VA list is empty and return the
+ * dm_config_node* result as output parameter
+ */
struct dm_config_node *config_make_nodes_v(struct dm_config_tree *cft,
struct dm_config_node *parent,
struct dm_config_node *pre_sib,