From df6933326de3ff173b2bd3458d8b29dce8c0f88f Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 9 Oct 2017 23:34:04 +0200 Subject: In dive.c make cylinder_renumber an external function... instead of dc_cylinder_renumber() because it is the one which is really useful elsewhere. Signed-off-by: Stefan Fuchs --- core/dive.c | 4 ++-- core/dive.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/dive.c b/core/dive.c index 59bbef9c8..c84c878f3 100644 --- a/core/dive.c +++ b/core/dive.c @@ -2023,7 +2023,7 @@ static void add_initial_gaschange(struct dive *dive, struct divecomputer *dc) add_gas_switch_event(dive, dc, 0, 0); } -void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, int mapping[]) +static void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, int mapping[]) { int i; struct event *ev; @@ -2064,7 +2064,7 @@ void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, int mappin * Also note that we assume that the initial cylinder is cylinder 0, * so if that got renamed, we need to create a fake gas change event */ -static void cylinder_renumber(struct dive *dive, int mapping[]) +void cylinder_renumber(struct dive *dive, int mapping[]) { struct divecomputer *dc; for_each_dc (dive, dc) diff --git a/core/dive.h b/core/dive.h index f361cfcb2..74404a223 100644 --- a/core/dive.h +++ b/core/dive.h @@ -367,7 +367,7 @@ static inline bool dive_cache_is_valid(const struct dive *dive) } extern int get_cylinder_idx_by_use(struct dive *dive, enum cylinderuse cylinder_use_type); -extern void dc_cylinder_renumber(struct dive *dive, struct divecomputer *dc, int mapping[]); +extern void cylinder_renumber(struct dive *dive, int mapping[]); extern int same_gasmix_cylinder(cylinder_t *cyl, int cylid, struct dive *dive, bool check_unused); /* when selectively copying dive information, which parts should be copied? */ -- cgit v1.2.3-70-g09d2