aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-20 16:46:41 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit8e30641ba8fe37575794adef60c340e6116e0e7b (patch)
treeee88eebfa1728d57a7b3331ebaba3f50c6b1500c /src/partialator.c
parentbe37f0ce53156221de0248ee43dd2b3551bcb771 (diff)
Port indexamajig to new API, part I
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 246880da..47a752b0 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -254,14 +254,12 @@ static void write_custom_split(struct custom_split *csplit, int dsn,
for ( i=0; i<n_crystals; i++ ) {
const char *fn;
- struct event *ev;
char *evs;
char *id;
int dsn_crystal;
fn = crystal_get_image(crystals[i])->filename;
- ev = crystal_get_image(crystals[i])->event;
- evs = get_event_string(ev);
+ evs = crystal_get_image(crystals[i])->ev;
id = malloc(strlen(evs)+strlen(fn)+2);
if ( id == NULL ) {
@@ -349,14 +347,12 @@ static signed int find_first_crystal(Crystal **crystals, int n_crystals,
for ( i=0; i<n_crystals; i++ ) {
const char *fn;
- struct event *ev;
char *evs;
char *id;
int dsn_crystal;
fn = crystal_get_image(crystals[i])->filename;
- ev = crystal_get_image(crystals[i])->event;
- evs = get_event_string(ev);
+ evs = crystal_get_image(crystals[i])->ev;
id = malloc(strlen(evs)+strlen(fn)+2);
if ( id == NULL ) {
@@ -389,14 +385,12 @@ static void check_csplit(Crystal **crystals, int n_crystals,
for ( i=0; i<n_crystals; i++ ) {
const char *fn;
- struct event *ev;
char *evs;
char *id;
int dsn_crystal;
fn = crystal_get_image(crystals[i])->filename;
- ev = crystal_get_image(crystals[i])->event;
- evs = get_event_string(ev);
+ evs = crystal_get_image(crystals[i])->ev;
id = malloc(strlen(evs)+strlen(fn)+2);
if ( id == NULL ) {