From 141db86df8710369bd7ae2628e7b7a517e01e845 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 15 Nov 2019 13:03:24 -0800 Subject: rototiller: s/defaults/use_defaults/g More accurate name, this variable doesn't contain defaults, it controls the use of defaults. --- src/rototiller.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3