aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-07-24 11:54:18 +0200
committerThomas White <taw@physics.org>2017-07-24 11:54:18 +0200
commitc9dee7dba94cdd314d2769d30695d995d491b9cb (patch)
tree1f65bf4bf25813f4959e0e61b8d7c9587a616061
parent5458f4571c8856064e31d80d0b60eeebecb5f00b (diff)
Make struct taketwo_options const
-rw-r--r--libcrystfel/src/taketwo.c5
-rw-r--r--libcrystfel/src/taketwo.h3
2 files changed, 5 insertions, 3 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c
index a012d91a..87da44a1 100644
--- a/libcrystfel/src/taketwo.c
+++ b/libcrystfel/src/taketwo.c
@@ -1459,7 +1459,7 @@ static void cleanup_taketwo_cell(struct TakeTwoCell *ttCell)
* @rot: pointer to be given an assignment (hopefully) if indexing is
* successful.
**/
-static UnitCell *run_taketwo(UnitCell *cell, struct taketwo_options *opts,
+static UnitCell *run_taketwo(UnitCell *cell, const struct taketwo_options *opts,
struct rvec *rlps, int rlp_count)
{
int cell_vec_count = 0;
@@ -1546,7 +1546,8 @@ static UnitCell *run_taketwo(UnitCell *cell, struct taketwo_options *opts,
/* CrystFEL interface hooks */
-int taketwo_index(struct image *image, struct taketwo_options *opts, void *priv)
+int taketwo_index(struct image *image, const struct taketwo_options *opts,
+ void *priv)
{
Crystal *cr;
UnitCell *cell;
diff --git a/libcrystfel/src/taketwo.h b/libcrystfel/src/taketwo.h
index a03292a8..6c9d7513 100644
--- a/libcrystfel/src/taketwo.h
+++ b/libcrystfel/src/taketwo.h
@@ -45,7 +45,8 @@ struct taketwo_options
extern void *taketwo_prepare(IndexingMethod *indm, UnitCell *cell,
struct detector *det, float *ltl);
-extern int taketwo_index(struct image *image, struct taketwo_options *opts, void *priv);
+extern int taketwo_index(struct image *image,
+ const struct taketwo_options *opts, void *priv);
extern void taketwo_cleanup(IndexingPrivate *pp);
#endif /* TAKETWO_H */