aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-19 12:28:39 +0200
committerThomas White <taw@physics.org>2020-08-19 12:28:39 +0200
commit5f4c120e3c74284e72525d9bb5a9a8da13871968 (patch)
tree5435770fba275f6fd1d068199bbe197262bab6de /libcrystfel
parentd94e9bfa02bc1ee2f0e14132ea9f5f9d2689c757 (diff)
Const-cleaning
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/stream.c4
-rw-r--r--libcrystfel/src/stream.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index a79e006d..5b4b777b 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -185,7 +185,7 @@ static ImageFeatureList *read_peaks(Stream *st,
}
-static int write_peaks(struct image *image,
+static int write_peaks(const struct image *image,
const DataTemplate *dtempl, FILE *ofh)
{
int i;
@@ -612,7 +612,7 @@ static int write_crystal(Stream *st, Crystal *cr,
*
* \returns non-zero on error.
*/
-int stream_write_chunk(Stream *st, struct image *i,
+int stream_write_chunk(Stream *st, const struct image *i,
StreamFlags srf)
{
int j;
diff --git a/libcrystfel/src/stream.h b/libcrystfel/src/stream.h
index 0f28a4f8..9e92b35a 100644
--- a/libcrystfel/src/stream.h
+++ b/libcrystfel/src/stream.h
@@ -123,7 +123,7 @@ extern int stream_select_chunk(Stream *st, int chunk_number);
/* Read/write chunks */
extern struct image *stream_read_chunk(Stream *st, StreamFlags srf);
-extern int stream_write_chunk(Stream *st, struct image *image,
+extern int stream_write_chunk(Stream *st, const struct image *image,
StreamFlags srf);
#ifdef __cplusplus