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>
This commit is contained in:
Berthold Stoeger 2018-07-18 08:01:25 +02:00 committed by Dirk Hohndel
parent 3a933637da
commit 8ff7314b21
4 changed files with 11 additions and 10 deletions

View file

@ -294,7 +294,8 @@ typedef struct dive_trip
char *notes;
struct dive *dives;
int nrdives;
int index;
/* Used by the io-routines to mark trips that have already been written. */
bool saved;
unsigned expanded : 1, selected : 1, autogen : 1, fixup : 1;
struct dive_trip *next;
} dive_trip_t;