ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 1a725c9dc69d0045f75ff2632b54a7e4d05108f5
parent d38be2859384c10499bdae89bc25e766d789b895
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 14 Feb 2021 21:32:48 +0100

Rename getoptFlag variable to opt.

Diffstat:
Msrc/ansilove.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -65,7 +65,7 @@ main(int argc, char *argv[]) bool fileHasSAUCE = false; bool useSAUCEInfo = false; - int getoptFlag; + int opt; char *input = NULL, *output = NULL; char *fileName = NULL; @@ -98,8 +98,8 @@ main(int argc, char *argv[]) if (ansilove_init(&ctx, &options) == -1) errx(EXIT_FAILURE, "%s", ansilove_error(&ctx)); - while ((getoptFlag = getopt(argc, argv, "b:c:df:him:o:qrR:sSt:v")) != -1) { - switch (getoptFlag) { + while ((opt = getopt(argc, argv, "b:c:df:him:o:qrR:sSt:v")) != -1) { + switch (opt) { case 'b': options.bits = strtonum(optarg, 8, 9, &errstr);