summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-30 17:36:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-06-19 13:11:10 -0700
commit9b787e06060877386990af1a4b0ea2525a872968 (patch)
treecda97d3b0735b1acc89edee43887906793abfabb /core
parentd3cd85b3436aa02a5d60a3f1f12bc6758e486994 (diff)
downloadsubsurface-9b787e06060877386990af1a4b0ea2525a872968.tar.gz
Coding style: remove Java-style function definitions in dive.c
These stuck out like a sore thumb - let's go C-style instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r--core/dive.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/dive.c b/core/dive.c
index a85f9a805..2f0e42abd 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -3429,12 +3429,14 @@ struct tag_entry *taglist_added(struct tag_entry *original_list, struct tag_entr
return added_list;
}
-bool is_dc_planner(const struct divecomputer *dc) {
+bool is_dc_planner(const struct divecomputer *dc)
+{
return same_string(dc->model, "planned dive");
}
// Does this dive have a dive computer for which is_dc_planner has value planned
-bool has_planned(const struct dive *dive, bool planned) {
+bool has_planned(const struct dive *dive, bool planned)
+{
const struct divecomputer *dc = &dive->dc;
while (dc) {