aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
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 ) {