diff options
author | Thomas White <taw@physics.org> | 2019-04-26 16:33:05 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-09-12 16:35:52 +0200 |
commit | 91a16342b42900292cf828f22516a932a2c598eb (patch) | |
tree | 407819a6d69283fde6dca8cca2312688471751dd /src | |
parent | 70ce07879e5fb6b72681f86fcf7545f7f4a95f98 (diff) |
pinkIndexer: Formatting, and get rid of tmp_enum
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index cded5f34..da5c3f7e 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -279,7 +279,6 @@ static void add_geom_beam_stuff_to_field_list(struct imagefile_field_list *copym int main(int argc, char *argv[]) { int c; - unsigned int tmp_enum; char *filename = NULL; char *outfile = NULL; FILE *fh; @@ -940,7 +939,7 @@ int main(int argc, char *argv[]) &iargs.xgandalf_opts.maxLatticeVectorLength_A) != 1) { ERROR("Invalid value for " - "--xgandalf-max-lattice-vector-length\n"); + "--xgandalf-max-lattice-vector-length\n"); return 1; } break; @@ -976,69 +975,79 @@ int main(int argc, char *argv[]) break; case 362: - if (sscanf(optarg, "%u", &tmp_enum) != 1) + if (sscanf(optarg, "%u", + &iargs.pinkIndexer_opts.considered_peaks_count) != 1) { ERROR("Invalid value for " - "--pinkIndexer-considered-peaks-count\n"); + "--pinkIndexer-considered-peaks-count\n"); return 1; } - iargs.pinkIndexer_opts.considered_peaks_count = tmp_enum; break; case 363: - if (sscanf(optarg, "%u", &tmp_enum) != 1) + if (sscanf(optarg, "%u", + &iargs.pinkIndexer_opts.angle_resolution) != 1) { - ERROR("Invalid value for --pinkIndexer-angle-resolution \n"); + ERROR("Invalid value for " + "--pinkIndexer-angle-resolution\n"); return 1; } - iargs.pinkIndexer_opts.angle_resolution = tmp_enum; break; case 364: - if (sscanf(optarg, "%u", &tmp_enum) != 1) + if (sscanf(optarg, "%u", + &iargs.pinkIndexer_opts.refinement_type) != 1) { - ERROR("Invalid value for --pinkIndexer-refinement-type \n"); + ERROR("Invalid value for " + "--pinkIndexer-refinement-type\n"); return 1; } - iargs.pinkIndexer_opts.refinement_type = tmp_enum; break; case 365: - if (sscanf(optarg, "%d", &iargs.pinkIndexer_opts.thread_count) != 1) + if (sscanf(optarg, "%d", + &iargs.pinkIndexer_opts.thread_count) != 1) { - ERROR("Invalid value for --pinkIndexer-thread-count \n"); + ERROR("Invalid value for " + "--pinkIndexer-thread-count\n"); return 1; } break; case 366: - if (sscanf(optarg, "%f", &iargs.pinkIndexer_opts.maxResolutionForIndexing_1_per_A) != 1) + if (sscanf(optarg, "%f", + &iargs.pinkIndexer_opts.maxResolutionForIndexing_1_per_A) != 1) { - ERROR("Invalid value for --pinkIndexer-max-resolution-for-indexing \n"); + ERROR("Invalid value for " + "--pinkIndexer-max-resolution-for-indexing\n"); return 1; } break; case 367: - if (sscanf(optarg, "%f", &iargs.pinkIndexer_opts.tolerance) != 1) + if (sscanf(optarg, "%f", + &iargs.pinkIndexer_opts.tolerance) != 1) { - ERROR("Invalid value for --pinkIndexer-tolerance \n"); + ERROR("Invalid value for " + "--pinkIndexer-tolerance\n"); return 1; } break; case 368: - iargs.pinkIndexer_opts.multi = 1; + iargs.pinkIndexer_opts.multi = 1; break; case 369: - iargs.pinkIndexer_opts.no_check_indexed = 1; + iargs.pinkIndexer_opts.no_check_indexed = 1; break; case 370: - if (sscanf(optarg, "%f", &iargs.pinkIndexer_opts.reflectionRadius) != 1) + if (sscanf(optarg, "%f", + &iargs.pinkIndexer_opts.reflectionRadius) != 1) { - ERROR("Invalid value for --pinkIndexer-reflection-radius \n"); + ERROR("Invalid value for " + "--pinkIndexer-reflection-radius\n"); return 1; } break; |