aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-18 13:23:18 +0200
committerThomas White <taw@physics.org>2018-06-18 13:23:18 +0200
commit6379c42e97a2bb8821808a430e3a13212b547ad6 (patch)
treecee174d0ef5459a7a575b8d043dfdafca34710ed /src
parentf5f03547684c030eaeb2eb64d03ac5ae9e696b79 (diff)
Remove tmp_enum
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 732ec96c..352ce200 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -251,7 +251,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;
@@ -814,21 +813,19 @@ int main(int argc, char *argv[])
break;
case 351:
- if (sscanf(optarg, "%u", &tmp_enum) != 1)
+ if (sscanf(optarg, "%u", &iargs.xgandalf_opts.sampling_pitch) != 1)
{
ERROR("Invalid value for --xgandalf-sampling-pitch-selector\n");
return 1;
}
- iargs.xgandalf_opts.sampling_pitch = tmp_enum;
break;
case 352:
- if (sscanf(optarg, "%u", &tmp_enum) != 1)
+ if (sscanf(optarg, "%u", &iargs.xgandalf_opts.grad_desc_iteration_selector) != 1)
{
ERROR("Invalid value for --xgandalf-grad-desc-iterations-selector\n");
return 1;
}
- iargs.xgandalf_opts.grad_desc_iteration_selector = tmp_enum;
break;
case 353: