diff options
author | Thomas White <taw@physics.org> | 2011-04-13 17:12:00 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:24 +0100 |
commit | 36b436334514124e444fc5ccb42e1dc1d1bb25bc (patch) | |
tree | 94e896292bb31e3eb170d81524b1a50eae8b107f /src/indexamajig.c | |
parent | a11e066ba46a4ef51f5fa831a900a7db3678c717 (diff) |
Write stream header in stream.c
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 7f9a1f56..a7565d01 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -494,7 +494,6 @@ int main(int argc, char *argv[]) int cellr; int peaks; int nthreads = 1; - int i; pthread_mutex_t output_mutex = PTHREAD_MUTEX_INITIALIZER; char *prepare_line; char prepare_filename[1024]; @@ -798,14 +797,7 @@ int main(int argc, char *argv[]) } free(pdb); - /* Start by writing the entire command line to stdout */ - fprintf(ofh, "CrystFEL stream format 2.0\n"); - fprintf(ofh, "Command line:"); - for ( i=0; i<argc; i++ ) { - fprintf(ofh, " %s", argv[i]); - } - fprintf(ofh, "\n"); - fflush(ofh); + write_stream_header(ofh, argc, argv); if ( beam != NULL ) { nominal_photon_energy = beam->photon_energy; |