From 7a008febf6622daee74a832515a5c50445b9f179 Mon Sep 17 00:00:00 2001 From: Valerio Mariani Date: Mon, 26 Jan 2015 16:34:46 +0100 Subject: Fix some prototypes --- libcrystfel/src/hdf5-file.c | 5 +++-- libcrystfel/src/hdf5-file.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/hdf5-file.c b/libcrystfel/src/hdf5-file.c index e38ae67b..85d4af72 100644 --- a/libcrystfel/src/hdf5-file.c +++ b/libcrystfel/src/hdf5-file.c @@ -747,7 +747,7 @@ static struct hdf5_write_location *make_location_list(struct detector *det, } -static void write_location(hid_t fh, struct image *image, +static void write_location(hid_t fh, const struct image *image, struct hdf5_write_location *loc) { hid_t sh, dh, ph; @@ -947,7 +947,8 @@ static void write_spectrum(hid_t fh, struct sample *spectrum, int spectrum_size, } -int hdf5_write_image(const char *filename, struct image *image, char *element) +int hdf5_write_image(const char *filename, const struct image *image, + char *element) { hid_t fh; int li; diff --git a/libcrystfel/src/hdf5-file.h b/libcrystfel/src/hdf5-file.h index 84b20798..4d7b223c 100644 --- a/libcrystfel/src/hdf5-file.h +++ b/libcrystfel/src/hdf5-file.h @@ -55,7 +55,7 @@ extern "C" { extern int hdf5_write(const char *filename, const void *data, int width, int height, int type); -extern int hdf5_write_image(const char *filename, struct image *image, +extern int hdf5_write_image(const char *filename, const struct image *image, char *element); extern int hdf5_read(struct hdfile *f, struct image *image, -- cgit v1.2.3