summaryrefslogtreecommitdiffstats
path: root/core/save-html.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-18 08:01:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-18 09:04:47 -0700
commit8ff7314b219d2eab85f7777e470091a76cf25107 (patch)
tree0f77da8b2d638f7b64a3bdc6caa8f2b274395472 /core/save-html.c
parent3a933637dab9aa4fee55198623a6f9235727cfde (diff)
downloadsubsurface-8ff7314b219d2eab85f7777e470091a76cf25107.tar.gz
Cleanup: rename trip->index to trip->saved
The index-field was misused by the IO routines to mark which dives had been saved. Somewhat questionable, but let's at least name the field accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-html.c')
-rw-r--r--core/save-html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-html.c b/core/save-html.c
index 1825c51a1..2081b2eab 100644
--- a/core/save-html.c
+++ b/core/save-html.c
@@ -435,17 +435,17 @@ void write_trips(struct membuffer *b, const char *photos_dir, bool selected_only
char *sep = &sep_;
for (trip = dive_trip_list; trip != NULL; trip = trip->next)
- trip->index = 0;
+ trip->saved = 0;
for_each_dive (i, dive) {
trip = dive->divetrip;
/*Continue if the dive have no trips or we have seen this trip before*/
- if (!trip || trip->index)
+ if (!trip || trip->saved)
continue;
/* We haven't seen this trip before - save it and all dives */
- trip->index = 1;
+ trip->saved = 1;
write_trip(b, trip, &dive_no, selected_only, photos_dir, list_only, sep);
}