summaryrefslogtreecommitdiffstats
path: root/core/profile.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-07-06 12:59:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-09 19:19:04 +0100
commit2fd4cb5fe1415a204610b89b22c0863c0703175e (patch)
treecab34a6dc57376b0447b1124b199e8b9566ca460 /core/profile.h
parentfe6d3c8c3803378fa9369dd6dfb5ec2fa5a0086f (diff)
downloadsubsurface-2fd4cb5fe1415a204610b89b22c0863c0703175e.tar.gz
Profile: pass index instead of pointer to set_plot_pressure_data
Another plot-pressure-related function whose argument is converted to an index. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.h')
-rw-r--r--core/profile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/profile.h b/core/profile.h
index 070da1f23..0153ccf94 100644
--- a/core/profile.h
+++ b/core/profile.h
@@ -107,9 +107,9 @@ static inline int get_plot_pressure_data(const struct plot_info *pi, int idx, en
return pi->entry[idx].pressure[cylinder][sensor];
}
-static inline void set_plot_pressure_data(struct plot_data *entry, enum plot_pressure sensor, int idx, int value)
+static inline void set_plot_pressure_data(struct plot_info *pi, int idx, enum plot_pressure sensor, int cylinder, int value)
{
- entry->pressure[idx][sensor] = value;
+ pi->entry[idx].pressure[cylinder][sensor] = value;
}
static inline int get_plot_sensor_pressure(const struct plot_info *pi, int idx, int cylinder)