summaryrefslogtreecommitdiffstats
path: root/subsurface-core/device.c
diff options
context:
space:
mode:
authorGravatar Stephen Hemminger <stephen@networkplumber.org>2015-11-15 10:15:40 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-15 12:10:37 -0800
commit6cb30ba1b68805e0a7306cd6f54da4afe3148d4b (patch)
tree185ebf22716066b9b167a3a7f84404affd021193 /subsurface-core/device.c
parent84b7a37869ac87aea595b57075d895d0035026d0 (diff)
downloadsubsurface-6cb30ba1b68805e0a7306cd6f54da4afe3148d4b.tar.gz
simple spelling changes
Fix obvious spelling mistakes in comments (and one error message). Yes, this is trivial but I saw one while reviewing some of the code and after that decided to run code through some tools. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/device.c')
-rw-r--r--subsurface-core/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/subsurface-core/device.c b/subsurface-core/device.c
index c952c84be..bc1a2f681 100644
--- a/subsurface-core/device.c
+++ b/subsurface-core/device.c
@@ -85,7 +85,7 @@ static int fill_samples(struct sample *s, int max_d, int avg_d, int max_t, doubl
}
/* we have no average depth; instead of making up a random average depth
- * we should assume either a PADI recrangular profile (for short and/or
+ * we should assume either a PADI rectangular profile (for short and/or
* shallow dives) or more reasonably a six point profile with a 3 minute
* safety stop at 5m */
static void fill_samples_no_avg(struct sample *s, int max_d, int max_t, double slope)
@@ -129,7 +129,7 @@ struct divecomputer *fake_dc(struct divecomputer *dc)
/*
* We want to fake the profile so that the average
- * depth ends up correct. However, in the absense of
+ * depth ends up correct. However, in the absence of
* a reasonable average, let's just make something
* up. Note that 'avg_d == max_d' is _not_ a reasonable
* average.