diff options
author | Thomas White <taw@physics.org> | 2020-07-10 15:26:35 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 47ecc15f4f32350bb29085459e23f208007e3d1c (patch) | |
tree | 98b9b2c3e1c7d6cc7bdc0e70aa8fbbbd98070705 /libcrystfel | |
parent | 6c3b71214cbce3de1d12c4cd2f12d68a96bccfab (diff) |
const-cleaning
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/image-cbf.c | 5 | ||||
-rw-r--r-- | libcrystfel/src/image-cbf.h | 2 | ||||
-rw-r--r-- | libcrystfel/src/image-hdf5.c | 2 | ||||
-rw-r--r-- | libcrystfel/src/image-hdf5.h | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c index 0d7b914d..9b34d88c 100644 --- a/libcrystfel/src/image-cbf.c +++ b/libcrystfel/src/image-cbf.c @@ -544,7 +544,8 @@ int image_cbf_read_mask(struct panel_template *p, } -static int unpack_panels(struct image *image, DataTemplate *dtempl, +static int unpack_panels(struct image *image, + const DataTemplate *dtempl, float *data, int data_width, int data_height) { int pi; @@ -600,7 +601,7 @@ static int unpack_panels(struct image *image, DataTemplate *dtempl, int image_cbf_read(struct image *image, - DataTemplate *dtempl, + const DataTemplate *dtempl, const char *filename, const char *event, int gz) diff --git a/libcrystfel/src/image-cbf.h b/libcrystfel/src/image-cbf.h index 6cb93d83..bfcbe6d2 100644 --- a/libcrystfel/src/image-cbf.h +++ b/libcrystfel/src/image-cbf.h @@ -47,7 +47,7 @@ extern int load_mask_cbf(struct panel_template *p, int gz, int *bad, int mask_good, int mask_bad); extern int image_cbf_read(struct image *image, - DataTemplate *dtempl, + const DataTemplate *dtempl, const char *filename, const char *event, int gz); diff --git a/libcrystfel/src/image-hdf5.c b/libcrystfel/src/image-hdf5.c index 5b7a9728..6c2a323a 100644 --- a/libcrystfel/src/image-hdf5.c +++ b/libcrystfel/src/image-hdf5.c @@ -526,7 +526,7 @@ static int load_hdf5_hyperslab(struct panel_template *p, int image_hdf5_read(struct image *image, - DataTemplate *dtempl, + const DataTemplate *dtempl, const char *filename, const char *event) { diff --git a/libcrystfel/src/image-hdf5.h b/libcrystfel/src/image-hdf5.h index af57e3d4..05f87858 100644 --- a/libcrystfel/src/image-hdf5.h +++ b/libcrystfel/src/image-hdf5.h @@ -43,7 +43,7 @@ extern double image_hdf5_get_value(const char *from, const char *ev); extern int image_hdf5_read(struct image *image, - DataTemplate *dtempl, + const DataTemplate *dtempl, const char *filename, const char *event); |