Avoid reusing variable name!
This commit is contained in:
@@ -84,8 +84,6 @@ double tempo_convert(const char *str)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int c;
|
|
||||||
|
|
||||||
double ratio = 1.0;
|
double ratio = 1.0;
|
||||||
double duration = 0.0;
|
double duration = 0.0;
|
||||||
double pitchshift = 0.0;
|
double pitchshift = 0.0;
|
||||||
@@ -182,12 +180,12 @@ int main(int argc, char **argv)
|
|||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
c = getopt_long(argc, argv,
|
int optionChar = getopt_long(argc, argv,
|
||||||
"t:p:d:RLPFc:f:T:D:qhHVM:23",
|
"t:p:d:RLPFc:f:T:D:qhHVM:23",
|
||||||
longOpts, &optionIndex);
|
longOpts, &optionIndex);
|
||||||
if (c == -1) break;
|
if (optionChar == -1) break;
|
||||||
|
|
||||||
switch (c) {
|
switch (optionChar) {
|
||||||
case 'h': help = true; break;
|
case 'h': help = true; break;
|
||||||
case 'H': fullHelp = true; break;
|
case 'H': fullHelp = true; break;
|
||||||
case 'V': version = true; break;
|
case 'V': version = true; break;
|
||||||
|
|||||||
Reference in New Issue
Block a user