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 <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2017-11-16 17:55:14 -08:00 committed by Lubomir I. Ivanov
parent 8136c2d78b
commit 2e82a5d2ed
2 changed files with 1 additions and 3 deletions

View file

@ -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