/* Load a value into the part of a struct swb_config indicated by name */
static int swb_config_load_option(struct swb_config *cfg,
char *name, char *value) {
/* Load a value into the part of a struct swb_config indicated by name */
static int swb_config_load_option(struct swb_config *cfg,
char *name, char *value) {
- for (i = 0; swb_config_options[i].name; ++i) {
- opt = swb_config_options[i];
- if (strcmp(name, opt.name))
+ for (opt = swb_config_options; opt->name; ++opt) {
+ if (strcmp(name, opt->name))