diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2019-11-15 13:03:24 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2019-11-15 13:03:24 -0800 |
commit | 141db86df8710369bd7ae2628e7b7a517e01e845 (patch) | |
tree | dcdb47128238a15587bbef1c823eacf8455201f0 /src/rototiller.c | |
parent | 2a7a82dceeb103230a3e39bff3cb2e28b25c3c3f (diff) |
rototiller: s/defaults/use_defaults/g
More accurate name, this variable doesn't contain defaults, it
controls the use of defaults.
Diffstat (limited to 'src/rototiller.c')
-rw-r--r-- | src/rototiller.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rototiller.c b/src/rototiller.c index c8532af..46882f9 100644 --- a/src/rototiller.c +++ b/src/rototiller.c @@ -124,7 +124,7 @@ typedef struct argv_t { const char *module; const char *video; - unsigned defaults:1; + unsigned use_defaults:1; unsigned help:1; } argv_t; @@ -150,7 +150,7 @@ static int parse_argv(int argc, const char *argv[], argv_t *res_args) } else if (!strncmp("--module=", argv[i], 9)) { res_args->module = &argv[i][9]; } else if (!strcmp("--defaults", argv[i])) { - res_args->defaults = 1; + res_args->use_defaults = 1; } else if (!strcmp("--help", argv[i])) { res_args->help = 1; } else { @@ -284,7 +284,7 @@ static int setup_from_args(argv_t *args, setup_t *res_setup) return -ENOMEM; } - r = setup_interactively(setup.module, setup_module, args->defaults); + r = setup_interactively(setup.module, setup_module, args->use_defaults); if (r < 0) { settings_free(setup.module); settings_free(setup.video); @@ -295,7 +295,7 @@ static int setup_from_args(argv_t *args, setup_t *res_setup) if (r) changes = 1; - r = setup_interactively(setup.video, setup_video, args->defaults); + r = setup_interactively(setup.video, setup_video, args->use_defaults); if (r < 0) { settings_free(setup.module); settings_free(setup.video); |