mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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>
This commit is contained in:
parent
d3cd85b343
commit
9b787e0606
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue