From e2ff193809aeb9cbc4cda896a48ecbefa4adb00c Mon Sep 17 00:00:00 2001 From: Tim Segers Date: Mon, 3 Oct 2022 11:17:11 +0200 Subject: Allow NULL instead of empty waypoint callback function --- opendeco.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'opendeco.c') diff --git a/opendeco.c b/opendeco.c index 2f82a48..59c9892 100644 --- a/opendeco.c +++ b/opendeco.c @@ -32,10 +32,6 @@ void print_segment_callback(const decostate_t *ds, const waypoint_t wp, segtype_ last_depth = wp.depth; } -void empty_callback(const decostate_t *ds, const waypoint_t wp, segtype_t type) -{ -} - int main(int argc, const char *argv[]) { setlocale(LC_ALL, "en_US.utf8"); @@ -68,7 +64,7 @@ int main(int argc, const char *argv[]) /* determine @+5 TTS */ decostate_t ds_ = ds; add_segment_const(&ds_, depth, 5, gas); - decoinfo_t di_plus5 = calc_deco(&ds_, depth, gas, deco_gasses, len(deco_gasses), &empty_callback); + decoinfo_t di_plus5 = calc_deco(&ds_, depth, gas, deco_gasses, len(deco_gasses), NULL); /* print actual deco schedule */ decoinfo_t di = calc_deco(&ds, depth, gas, deco_gasses, len(deco_gasses), &print_segment_callback); -- cgit v1.2.3-70-g09d2