diff options
author | Thomas White <taw@physics.org> | 2023-06-07 14:02:26 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | c6115928bb875b0ed408655ff12b9ca00dae017c (patch) | |
tree | 4893d810372a0cd21d8a2115ef9a26af4e90ce1e /src | |
parent | bbfee92698c5bc2d5ab91782ab5215884da1c93b (diff) |
Move Mille stuff to separate file
Diffstat (limited to 'src')
-rw-r--r-- | src/im-sandbox.c | 7 |
1 files changed, 5 insertions, 2 deletions
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); |