summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-18 13:06:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-18 13:06:21 -0700
commitd191f5af6f78068a9ff2655a8b9aa354f4c85e94 (patch)
tree59fbb2c21ead3d836ecf7d8dbdc367680ce89dc7 /planner.c
parent72be8260b46ba54c72264488eaf24269fdb21e27 (diff)
downloadsubsurface-d191f5af6f78068a9ff2655a8b9aa354f4c85e94.tar.gz
Remove unused variables and fix signed/unsigned mismatch
The depth types are unsigned for dive plan datapoints. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/planner.c b/planner.c
index 6d44fec50..16807c18b 100644
--- a/planner.c
+++ b/planner.c
@@ -119,7 +119,7 @@ double tissue_at_end(struct dive *dive, char **cached_datap)
{
struct divecomputer *dc;
struct sample *sample, *psample;
- int i, j, t0, t1, gasidx, lastdepth;
+ int i, t0, t1, gasidx, lastdepth;
int o2, he;
double tissue_tolerance;
@@ -582,11 +582,11 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b
{
struct dive *dive;
struct sample *sample;
- int wait_time, o2, he, po2;
+ int o2, he, po2;
int transitiontime, gi;
int current_cylinder;
unsigned int stopidx;
- int depth, ceiling;
+ int depth;
double tissue_tolerance;
struct gaschanges *gaschanges = NULL;
int gaschangenr;