aboutsummaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-12-26 16:46:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-12-26 16:46:06 -0800
commit4dfbb7394f9aea8b79d46eb4dbb8082898811512 (patch)
tree5136b8b2d155b106939014176fc0dd77fd239c75 /equipment.c
parent1511711507f73d548e4088a10454e1e5f3879aeb (diff)
downloadsubsurface-4dfbb7394f9aea8b79d46eb4dbb8082898811512.tar.gz
Remove unused return value
We never use the number of decimals that this function returns. So we might as well not return them to begin with. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/equipment.c b/equipment.c
index 023db75d4..482fb4e1c 100644
--- a/equipment.c
+++ b/equipment.c
@@ -64,9 +64,8 @@ static int convert_pressure(int mbar, double *p)
return decimals;
}
-static int convert_volume_pressure(int ml, int mbar, double *v, double *p)
+static void convert_volume_pressure(int ml, int mbar, double *v, double *p)
{
- int decimals = 1;
double volume, pressure;
volume = ml / 1000.0;
@@ -78,13 +77,11 @@ static int convert_volume_pressure(int ml, int mbar, double *v, double *p)
if (output_units.pressure == PSI) {
pressure = mbar_to_PSI(mbar);
- decimals = 0;
} else
pressure = mbar / 1000.0;
}
*v = volume;
*p = pressure;
- return decimals;
}
static void set_cylinder_type_spinbuttons(struct cylinder_widget *cylinder, int ml, int mbar)