From 9ef1b4e9ce312231819f02fe477cc0054a926077 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Jul 2021 12:54:36 +0200 Subject: pattern_sim: Rename shadowed variables --- src/pattern_sim.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 7db74df5..aa1a4f9e 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -467,7 +467,7 @@ static void add_metadata(const char *filename, int main(int argc, char *argv[]) { - int c; + int argn; struct image *image; DataTemplate *dtempl; struct gpu_context *gctx = NULL; @@ -559,10 +559,10 @@ int main(int argc, char *argv[]) }; /* Short options */ - while ((c = getopt_long(argc, argv, "hrn:i:t:p:o:g:y:s:x:vb:", + while ((argn = getopt_long(argc, argv, "hrn:i:t:p:o:g:y:s:x:vb:", longopts, NULL)) != -1) { - switch (c) { + switch (argn) { case 'h' : show_help(argv[0]); @@ -752,7 +752,7 @@ int main(int argc, char *argv[]) break; default : - ERROR("Unhandled option '%c'\n", c); + ERROR("Unhandled option '%c'\n", argn); break; } @@ -1008,10 +1008,10 @@ int main(int argc, char *argv[]) if ( random_size ) { - double alen, blen, clen, dis; + double alen, blen, clen, discard; cell_get_parameters(input_cell, &alen, &blen, &clen, - &dis, &dis, &dis); + &discard, &discard, &discard); na = random_ncells(alen, min_size, max_size); nb = random_ncells(blen, min_size, max_size); -- cgit v1.2.3