From 29f24293fe1d69f6457b6f4749082f88e805da02 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 6 Jul 2015 22:17:53 +1200 Subject: Fixed fixme and renamed the var anyway --- cue-bin-split.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cue-bin-split.c b/cue-bin-split.c index 81ed7da..24f99e0 100644 --- a/cue-bin-split.c +++ b/cue-bin-split.c @@ -62,6 +62,7 @@ int main(int argc, char **argv) int sample_size = 0; /* Misc */ + char opt = 0; char out_fname[] = "track-000000000000"; /* That should do it */ int index = 0; int items = 0; @@ -78,14 +79,10 @@ int main(int argc, char **argv) double finish_sec = 0; unsigned long start_sample = 0; unsigned long finish_sample = 0; - - - /* FIXME move me */ - char c; - while ( ( c = getopt(argc, argv, "r:c:i:s:f:") ) != -1 ) + while ( ( opt = getopt(argc, argv, "r:c:i:s:f:") ) != -1 ) { - switch (c) + switch (opt) { case 'r': rate = atoi(optarg); -- cgit v1.1