diff options
author | Thomas White <taw@physics.org> | 2019-07-29 15:59:49 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-07-29 16:10:45 +0200 |
commit | 83ef79e1642841966690e4c9643a8716e8521112 (patch) | |
tree | 605074348f558e327c72dd3c0b9503b415afe530 /libcrystfel/src | |
parent | 8c2af4e67175c44b07bc65473bd9f990932c25aa (diff) |
panel_number(): Make args const
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/detector.c | 2 | ||||
-rw-r--r-- | libcrystfel/src/detector.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index d1c8bc75..b23db054 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -506,7 +506,7 @@ struct panel *find_orig_panel(struct detector *det, double fs, double ss) } -int panel_number(struct detector *det, struct panel *p) +int panel_number(const struct detector *det, const struct panel *p) { int pn; diff --git a/libcrystfel/src/detector.h b/libcrystfel/src/detector.h index d4276e35..b6181292 100644 --- a/libcrystfel/src/detector.h +++ b/libcrystfel/src/detector.h @@ -256,7 +256,7 @@ extern struct panel *find_orig_panel(struct detector *det, extern signed int find_orig_panel_number(struct detector *det, double fs, double ss); -extern int panel_number(struct detector *det, struct panel *p); +extern int panel_number(const struct detector *det, const struct panel *p); extern struct detector *get_detector_geometry(const char *filename, struct beam_params *beam); |