diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2016-03-07 16:17:36 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-07 16:32:18 -0800 |
commit | 9d3be5a16590f3418d289e916e0edf3e26a33ca1 (patch) | |
tree | 9632395df88face61852c126f55c1e8954cdddba /subsurface-core/gaspressures.c | |
parent | 04e39704e2430574d9307b9fc30d07898e168e95 (diff) | |
download | subsurface-9d3be5a16590f3418d289e916e0edf3e26a33ca1.tar.gz |
Silence warnings in gaspressures.c
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/gaspressures.c')
-rw-r--r-- | subsurface-core/gaspressures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/gaspressures.c b/subsurface-core/gaspressures.c index a8bb80812..3cbb36773 100644 --- a/subsurface-core/gaspressures.c +++ b/subsurface-core/gaspressures.c @@ -312,7 +312,7 @@ static void fill_missing_tank_pressures(struct dive *dive, struct plot_info *pi, * scale pressures, so it ends up being a unitless scaling * factor. */ -static inline int calc_pressure_time(struct dive *dive, struct divecomputer *dc, struct plot_data *a, struct plot_data *b) +static inline int calc_pressure_time(struct dive *dive, struct plot_data *a, struct plot_data *b) { int time = b->sec - a->sec; int depth = (a->depth + b->depth) / 2; @@ -379,7 +379,7 @@ void populate_pressure_information(struct dive *dive, struct divecomputer *dc, s /* If track_pr structure already exists, then update it: */ /* discrete integration of pressure over time to get the SAC rate equivalent */ if (current) { - entry->pressure_time = calc_pressure_time(dive, dc, entry - 1, entry); + entry->pressure_time = calc_pressure_time(dive, entry - 1, entry); current->pressure_time += entry->pressure_time; current->t_end = entry->sec; } |