diff options
author | Robert C. Helling <helling@atdotde.de> | 2018-05-08 16:24:51 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | 969dfee9ec088acb942e211cb90329d2b8c0751f (patch) | |
tree | 89571c94dde158e2027108ba3dde7c8468caf351 /core/statistics.c | |
parent | 0b836f12fc714f0dfee6303699c9510f4cdf3b17 (diff) | |
download | subsurface-969dfee9ec088acb942e211cb90329d2b8c0751f.tar.gz |
Rename enum dive_comp_type to divemode_t
...as the usuage is not anymore about a computer but
a momentary dive mode. Rename the end indicator as well.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/statistics.c')
-rw-r--r-- | core/statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/statistics.c b/core/statistics.c index 9dd495b51..d8ddf914c 100644 --- a/core/statistics.c +++ b/core/statistics.c @@ -123,7 +123,7 @@ void process_all_dives(struct dive *dive, struct dive **prev_dive) free(stats_by_type); size = sizeof(stats_t) * (dive_table.nr + 1); - tsize = sizeof(stats_t) * (NUM_DC_TYPE + 1); + tsize = sizeof(stats_t) * (NUM_DIVEMODE + 1); stats_yearly = malloc(size); stats_monthly = malloc(size); stats_by_trip = malloc(size); |