summaryrefslogtreecommitdiffstats
path: root/core/divelist.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-11-24 12:35:46 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-09 20:58:04 -0800
commit54fcda4c32029c1afd9eb02fb0c4a5e1949da175 (patch)
treea69470eed1897cef19b5f4c0006f3992f9602c45 /core/divelist.c
parent2c7714269637835c7270f3ef89a11cc8f7591152 (diff)
downloadsubsurface-54fcda4c32029c1afd9eb02fb0c4a5e1949da175.tar.gz
Core: fix dump_trip_list() function
In 64e6e435f82801f4f440ef5b1caf58a91a7c9929 the trip->when field was replaced by a function. This forgot to adapt dump_trip_list(), which is only compiled if DEBUG_TRIP is defined. Fix the function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divelist.c')
-rw-r--r--core/divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/divelist.c b/core/divelist.c
index 4528e4cfd..100266eb1 100644
--- a/core/divelist.c
+++ b/core/divelist.c
@@ -751,14 +751,14 @@ void dump_trip_list(void)
for (trip = dive_trip_list; trip; trip = trip->next) {
struct tm tm;
utc_mkdate(trip_date(trip), &tm);
- if (trip->when < last_time)
+ if (trip_date(trip) < last_time)
printf("\n\ndive_trip_list OUT OF ORDER!!!\n\n\n");
printf("%s trip %d to \"%s\" on %04u-%02u-%02u %02u:%02u:%02u (%d dives - %p)\n",
trip->autogen ? "autogen " : "",
++i, trip->location,
tm.tm_year, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec,
trip->dives.nr, trip);
- last_time = trip->when;
+ last_time = trip_date(trip);
}
printf("-----\n");
}