summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-18 21:45:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-24 09:51:37 -0700
commit694776eed1f88327237240e122e15b274a87994b (patch)
tree70a2445605f3bf0fcf509085bdc6fa68287875ab /core/divelist.c
parent39a4090c0a6e1d8fe12516be06ee7b31dd4bc96d (diff)
downloadsubsurface-694776eed1f88327237240e122e15b274a87994b.tar.gz
cleanup: rename set_dc_nickname() to add_devices_of_dive()
The function was misnamed in that it doesn't set the nickname of a device. Instead, it adds all (unknown) devices of a dive to the/a device-table. Let's call it appropriately. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/divelist.c b/core/divelist.c
index 3bc4ff229..2dd4e3e81 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -826,7 +826,7 @@ void process_loaded_dives()
for_each_dive(i, dive) {
if (!dive->hidden_by_filter)
shown_dives++;
- set_dc_nickname(dive, &device_table);
+ add_devices_of_dive(dive, &device_table);
}
sort_dive_table(&dive_table);
@@ -1185,11 +1185,11 @@ void process_imported_dives(struct dive_table *import_table, struct trip_table *
* since we know they all came from the same divecomputer we just check for the
* first one */
if (flags & IMPORT_IS_DOWNLOADED) {
- set_dc_nickname(import_table->dives[0], devices_to_add);
+ add_devices_of_dive(import_table->dives[0], devices_to_add);
} else {
/* they aren't downloaded, so record / check all new ones */
for (i = 0; i < import_table->nr; i++)
- set_dc_nickname(import_table->dives[i], devices_to_add);
+ add_devices_of_dive(import_table->dives[i], devices_to_add);
}
/* Sort the table of dives to be imported and combine mergable dives */