From c6115928bb875b0ed408655ff12b9ca00dae017c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 7 Jun 2023 14:02:26 +0200 Subject: Move Mille stuff to separate file --- src/im-sandbox.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index c3f2ca70..6b68326c 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -365,13 +365,14 @@ static int run_work(const struct index_args *iargs, Stream *st, } } + mille = NULL; + #ifdef HAVE_MILLEPEDE if ( iargs->mille ) { char tmp[64]; snprintf(tmp, 63, "mille-data-%i.bin", cookie); mille = crystfel_mille_new(tmp, 1, 0); - } else { - mille = NULL; } + #endif while ( !allDone ) { @@ -546,7 +547,9 @@ static int run_work(const struct index_args *iargs, Stream *st, free(pargs.event); } + #ifdef HAVE_MILLEPEDE crystfel_mille_free(mille); + #endif /* These are both no-ops if argument is NULL */ im_zmq_shutdown(zmqstuff); -- cgit v1.2.3