Lines Matching defs:args
168 ctl_init_opts(ctl_options_t *opts, int num_args, struct ctl_be_arg *args)
175 if ((args[i].flags & CTL_BEARG_RD) == 0)
177 if ((args[i].flags & CTL_BEARG_ASCII) == 0)
180 opt->name = strdup(args[i].kname, M_CTL);
181 opt->value = strdup(args[i].kvalue, M_CTL);
187 ctl_update_opts(ctl_options_t *opts, int num_args, struct ctl_be_arg *args)
193 if ((args[i].flags & CTL_BEARG_RD) == 0)
195 if ((args[i].flags & CTL_BEARG_ASCII) == 0)
198 if (strcmp(opt->name, args[i].kname) == 0)
201 if (args[i].kvalue != NULL &&
202 ((char *)args[i].kvalue)[0] != 0) {
205 opt->value = strdup(args[i].kvalue, M_CTL);
208 opt->name = strdup(args[i].kname, M_CTL);
209 opt->value = strdup(args[i].kvalue, M_CTL);