From 2e82a5d2ed6966cb1ac0fb9751278d357ae6346d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 16 Nov 2017 17:55:14 -0800 Subject: Properly declare 'has_gaschange_event()' function It's already used in core/gaspressures.c where it was declared privately, and we'll have a new user in the profile code, so just declare it in a proper header file like it should have been. Signed-off-by: Linus Torvalds --- core/dive.h | 2 +- core/gaspressures.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'core') diff --git a/core/dive.h b/core/dive.h index a862748d7..935da735d 100644 --- a/core/dive.h +++ b/core/dive.h @@ -429,6 +429,7 @@ extern timestamp_t picture_get_timestamp(const char *filename); extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic); extern void picture_free(struct picture *picture); +extern bool has_gaschange_event(struct dive *dive, struct divecomputer *dc, int idx); extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc); extern int get_depth_at_time(struct divecomputer *dc, unsigned int time); @@ -970,7 +971,6 @@ static inline struct gasmix *get_gasmix(struct dive *dive, struct divecomputer * return gasmix; } - /* these structs holds the information that * describes the cylinders / weight systems. * they are global variables initialized in equipment.c diff --git a/core/gaspressures.c b/core/gaspressures.c index 3205a00f6..206998101 100644 --- a/core/gaspressures.c +++ b/core/gaspressures.c @@ -331,8 +331,6 @@ static void debug_print_pressures(struct plot_info *pi) } #endif -extern bool has_gaschange_event(struct dive *dive, struct divecomputer *dc, int idx); - /* This function goes through the list of tank pressures, either SENSOR_PRESSURE(entry) or O2CYLINDER_PRESSURE(entry), * of structure plot_info for the dive profile where each item in the list corresponds to one point (node) of the * profile. It finds values for which there are no tank pressures (pressure==0). For each missing item (node) of -- cgit v1.2.3-70-g09d2