aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);