diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-18 11:15:32 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-11-20 08:14:54 -0800 |
commit | 6bf4120dbbf7be1b9267e0e86f3948b77870ea71 (patch) | |
tree | 3282a26502c1a91ae63ceca450b82b11f5be4e78 /core/load-git.c | |
parent | 3b9e0b59311908f6cbc099f3b7fd5294fd5d0d30 (diff) | |
download | subsurface-6bf4120dbbf7be1b9267e0e86f3948b77870ea71.tar.gz |
Core: replace tripflag by notrip boolean
The only remaining use of the tripflag was to mark dives that
were removed explicitly from a trip, i.e. shouldn't be autogrouped.
Therefore replace the enum by a simple boolean.
Currently, there is no way of unsetting the notrip flag. But this
shouldn't result in a user-visible change.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/load-git.c b/core/load-git.c index 1447becb2..59434c64e 100644 --- a/core/load-git.c +++ b/core/load-git.c @@ -261,7 +261,7 @@ static void parse_dive_notrip(char *line, struct membuffer *str, void *_dive) { UNUSED(str); UNUSED(line); - struct dive *dive = _dive; dive->tripflag = NO_TRIP; + struct dive *dive = _dive; dive->notrip = true; } static void parse_site_description(char *line, struct membuffer *str, void *_ds) |