}
char *
-svec_join(const struct svec *svec, const char *delimiter)
+svec_join(const struct svec *svec,
+ const char *delimiter, const char *terminator)
{
struct ds ds;
size_t i;
}
ds_put_cstr(&ds, svec->names[i]);
}
+ ds_put_cstr(&ds, terminator);
return ds_cstr(&ds);
}
void svec_print(const struct svec *svec, const char *title);
void svec_parse_words(struct svec *svec, const char *words);
bool svec_equal(const struct svec *, const struct svec *);
-char *svec_join(const struct svec *, const char *delimiter);
+char *svec_join(const struct svec *,
+ const char *delimiter, const char *terminator);
const char *svec_back(const struct svec *);
void svec_pop_back(struct svec *);
svec_init(&command_acls);
cfg_get_all_strings(&command_acls, "%s.commands.acl", pfx);
- command_acl = svec_join(&command_acls, ",");
+ command_acl = svec_join(&command_acls, ",", "");
ofproto_set_remote_execution(br->ofproto, command_acl,
cfg_get_string(0, "%s.commands.dir",