aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-29 15:59:49 +0200
committerThomas White <taw@physics.org>2019-07-29 16:10:45 +0200
commit83ef79e1642841966690e4c9643a8716e8521112 (patch)
tree605074348f558e327c72dd3c0b9503b415afe530
parent8c2af4e67175c44b07bc65473bd9f990932c25aa (diff)
panel_number(): Make args const
-rw-r--r--libcrystfel/src/detector.c2
-rw-r--r--libcrystfel/src/detector.h2
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);