diff options
author | Valerio Mariani <valerio.mariani@desy.de> | 2015-01-26 16:34:46 +0100 |
---|---|---|
committer | valerio.mariani@desy.de <vmariani@cfeld-valerio2.desy.de> | 2015-01-27 14:11:38 +0100 |
commit | 7a008febf6622daee74a832515a5c50445b9f179 (patch) | |
tree | a70c7657058b650dd9678b82c9161f2e37c8a2a0 | |
parent | f82046030009a17113c4f15d5f89cfee8c8f0ce5 (diff) |
Fix some prototypes
-rw-r--r-- | libcrystfel/src/hdf5-file.c | 5 | ||||
-rw-r--r-- | libcrystfel/src/hdf5-file.h | 2 |
2 files changed, 4 insertions, 3 deletions
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, |