summaryrefslogtreecommitdiffstats
path: root/core/dive.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-09 23:34:04 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2017-10-16 17:14:17 +0200
commitdf6933326de3ff173b2bd3458d8b29dce8c0f88f (patch)
treeb3f1c52c68a29387359b9a4dbef107aea06387f7 /core/dive.c
parentc29456f0bb11f07befc3af66ee7973258b491d20 (diff)
downloadsubsurface-df6933326de3ff173b2bd3458d8b29dce8c0f88f.tar.gz
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 <sfuchs@gmx.de>
Diffstat (limited to 'core/dive.c')
-rw-r--r--core/dive.c4
1 files changed, 2 insertions, 2 deletions
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)