summaryrefslogtreecommitdiffstats
path: root/subsurface-core/dive.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/dive.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/dive.c')
-rw-r--r--subsurface-core/dive.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/subsurface-core/dive.c b/subsurface-core/dive.c
index 82012fa25..2dc017564 100644
--- a/subsurface-core/dive.c
+++ b/subsurface-core/dive.c
@@ -1729,7 +1729,7 @@ int gasmix_distance(const struct gasmix *a, const struct gasmix *b)
}
/* fill_pressures(): Compute partial gas pressures in bar from gasmix and ambient pressures, possibly for OC or CCR, to be
- * extended to PSCT. This function does the calculations of gass pressures applicable to a single point on the dive profile.
+ * extended to PSCT. This function does the calculations of gases pressures applicable to a single point on the dive profile.
* The structure "pressures" is used to return calculated gas pressures to the calling software.
* Call parameters: po2 = po2 value applicable to the record in calling function
* amb_pressure = ambient pressure applicable to the record in calling function
@@ -2245,7 +2245,7 @@ static bool new_without_trip(struct dive *a)
*
* - dive computers with "relative datestamps" (ie the dive
* computer doesn't actually record an absolute date at all,
- * but instead at download-time syncronizes its internal
+ * but instead at download-time synchronizes its internal
* time with real-time on the downloading computer)
*
* - using multiple dive computers with different real time on
@@ -2799,15 +2799,15 @@ int count_dives_with_suit(const char *suit)
* are merged into one longer dive, because the user asked for it
* in the divelist.
*
- * Because this case is with teh same dive computer, we *know* the
+ * Because this case is with the same dive computer, we *know* the
* two must have a different start time, and "offset" is the relative
* time difference between the two.
*
- * (a) two different dive computers that we migth want to merge into
+ * (a) two different dive computers that we might want to merge into
* one single dive with multiple dive computers.
*
* This is the "try_to_merge()" case, which will have offset == 0,
- * even if the dive times migth be different.
+ * even if the dive times moth be different.
*/
struct dive *merge_dives(struct dive *a, struct dive *b, int offset, bool prefer_downloaded)
{
@@ -3054,7 +3054,7 @@ int split_dive(struct dive *dive)
continue;
}
- // Goind down again? We want at least a minute from
+ // Going down again? We want at least a minute from
// the surface start.
if (!surface_start)
continue;