# HG changeset patch # User Matti Hamalainen # Date 1413171375 -10800 # Node ID 3d555015ada4b16f2d3d8d8a53a92374578b1454 # Parent f81c6dc7bd0f60b38a1579a2aaafeabc1a33ceb7 Rename a variable. diff -r f81c6dc7bd0f -r 3d555015ada4 th_args.c --- 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);