diff options
author | Thomas White <taw@physics.org> | 2020-06-16 16:25:20 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 9d958b9db93e2009f403ad81fc7846036914f8fe (patch) | |
tree | be210d70f13488710a445bf7a398167239d13fa2 /libcrystfel/src/image-cbf.c | |
parent | 43dca1cd95610a2c736e53160ecdbfb04f7a2c1e (diff) |
Remove events.c, part 2
New event parsing, done at the last minute in image-hdf5.c
Diffstat (limited to 'libcrystfel/src/image-cbf.c')
-rw-r--r-- | libcrystfel/src/image-cbf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 ) { |