Mercurial > hg > th-libs
changeset 141:3d555015ada4
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Oct 2014 06:36:15 +0300 |
parents | f81c6dc7bd0f |
children | 0a4fd9cfb929 |
files | th_args.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/th_args.c Mon Oct 13 06:35:53 2014 +0300 +++ b/th_args.c Mon Oct 13 06:36:15 2014 +0300 @@ -147,17 +147,17 @@ { char *tmpArg = currArg, *optArg; int optN; - BOOL isFound; + BOOL found; // Short options can be combined: -a -b -c == -abc while (*tmpArg) { - for (optN = 0, isFound = FALSE; (optN < optListN) && !isFound; optN++) + for (optN = 0, found = FALSE; optN < optListN && !found; optN++) if (*tmpArg == optList[optN].optShort) { // Get possible option argument, if needed - if ((optList[optN].flags & OPT_ARGMASK) != 0 - && (++(*newArgIndex) < argc)) + if ((optList[optN].flags & OPT_ARGMASK) != 0 && + (++(*newArgIndex) < argc)) optArg = argv[*newArgIndex]; else optArg = NULL; @@ -177,10 +177,10 @@ return FALSE; } - isFound = TRUE; + found = TRUE; } - if (!isFound) + if (!found) { THERR("Unknown short option '%c' in argument '-%s'\n", *tmpArg, currArg);