From 9d958b9db93e2009f403ad81fc7846036914f8fe Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Jun 2020 16:25:20 +0200 Subject: Remove events.c, part 2 New event parsing, done at the last minute in image-hdf5.c --- libcrystfel/src/image-cbf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src/image-cbf.c') diff --git a/libcrystfel/src/image-cbf.c b/libcrystfel/src/image-cbf.c index d2d0eca1..5b27c5a5 100644 --- a/libcrystfel/src/image-cbf.c +++ b/libcrystfel/src/image-cbf.c @@ -506,7 +506,7 @@ signed int is_cbf_file(const char *filename) fh = fopen(filename, "r"); if ( fh == NULL ) return -1; - if ( fgets(line, 1024, fh) == NULL ) return -1; + if ( fgets(line, 1024, fh) == NULL ) return 0; fclose(fh); if ( strstr(line, "CBF") == NULL ) { @@ -524,7 +524,7 @@ signed int is_cbfgz_file(const char *filename) gzfh = gzopen(filename, "rb"); if ( gzfh == NULL ) return -1; - if ( gzgets(gzfh, line, 1024) == NULL ) return -1; + if ( gzgets(gzfh, line, 1024) == NULL ) return 0; gzclose(gzfh); if ( strstr(line, "CBF") == NULL ) { -- cgit v1.2.3