get_comindex
static int get_comindex(const char *, char **, char **, char **);
if (get_comindex(*av, &p_name, &p_port, &p_prefs) == -1)
if (get_comindex(*av, &p_name, &p_port, &p_prefd) == -1)