aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-23 12:54:36 +0200
committerThomas White <taw@physics.org>2021-07-23 12:55:02 +0200
commit9ef1b4e9ce312231819f02fe477cc0054a926077 (patch)
tree36e2b680af7932ef14af1f7f0041a556bda0ef68
parent14c95f24e1dbfde1e5046a59fcb2ebd884b615e8 (diff)
pattern_sim: Rename shadowed variables
-rw-r--r--src/pattern_sim.c12
1 files 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);