Berthold Stoeger 798e426926 cleanup: fix enum in profile.c
There are two enums related to the type of dive.
There is the global

enum divemode_t {OC, CCR, PSCR, FREEDIVE, NUM_DIVEMODE,
                 UNDEF_COMP_TYPE};

and the anonymous

enum {AIR, NITROX, TRIMIX, FREEDIVING} dive_type;

in struct plot_info.

In profile.c FREEDIVE (of divemode_t) is assigned to dive_type.
This only works because by chance(?) FREEDIVE and FREEDIVING are
the fourth element of each enum.

Fix this. C truly is a bad language when it comes to types
(very weak) and namespaces (non existing).

Contains whitespace fix.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-01-13 09:14:32 -08:00
..
2024-01-07 16:01:55 -08:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-02-17 06:46:46 -08:00
2017-04-29 13:32:55 -07:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2021-07-23 11:22:43 -07:00
2023-04-14 21:20:23 +02:00
2020-09-29 16:13:03 -07:00
2022-11-08 10:43:47 -08:00
2023-12-29 14:20:52 -08:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-06-12 08:04:30 -07:00
2021-07-23 11:22:43 -07:00
2021-07-23 11:22:43 -07:00
2018-10-21 19:55:09 +03:00
2023-04-14 21:20:23 +02:00
2024-01-13 09:14:32 -08:00
2022-03-13 15:07:33 -07:00
2022-03-12 08:28:32 -08:00
2024-01-07 16:01:55 -08:00
2024-01-07 16:01:55 -08:00
2021-07-23 11:16:00 -07:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2023-04-14 21:20:23 +02:00
2019-12-13 07:04:00 -05:00
2017-04-29 13:32:55 -07:00
2020-03-10 17:42:54 -07:00
2020-03-10 17:42:54 -07:00
2022-06-04 14:19:05 -07:00
2024-01-06 10:55:24 -08:00