return NULL;
}
-void finish_sample(struct dive *dive, struct sample *sample)
+void finish_sample(struct dive *dive)
{
dive->samples++;
}
return NULL;
*p = *sample;
p->time.seconds = time;
- finish_sample(dive, p);
+ finish_sample(dive);
return dive;
}
extern void record_dive(struct dive *dive);
extern struct sample *prepare_sample(struct dive **divep);
-extern void finish_sample(struct dive *dive, struct sample *sample);
+extern void finish_sample(struct dive *dive);
extern void report_dives(gboolean imported);
extern struct dive *fixup_dive(struct dive *dive);
case SAMPLE_TYPE_TIME:
sample = prepare_sample(divep);
sample->time.seconds = value.time;
- finish_sample(*divep, sample);
+ finish_sample(*divep);
break;
case SAMPLE_TYPE_DEPTH:
sample->depth.mm = value.depth * 1000 + 0.5;
if (!dive)
return;
- finish_sample(dive, sample);
+ finish_sample(dive);
sample = NULL;
}
sample->cylinderindex = u_sample->active_tank;
sample->cylinderpressure.mbar= u_sample->tank_pressure * 10;
uemis_event(dive, sample, u_sample);
- finish_sample(dive, sample);
+ finish_sample(dive);
i += 0x25;
u_sample++;
}