]> git.ipfire.org Git - thirdparty/curl.git/commit
splay: use access functions, add asserts, use Curl_timediff
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Aug 2024 14:13:23 +0000 (16:13 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Aug 2024 07:12:13 +0000 (09:12 +0200)
commitdcb51bafabf9d0776135de9111c1a3fe437d570c
tree8386ac67e4329769dec5dda8bb98b9da07df75de
parent6c5a7af754526cb6698f579db8d7a5834021f60d
splay: use access functions, add asserts, use Curl_timediff

- add set/get functions for the custom data in a tree node

- use Curl_timediff for time comparisons instead of the custom macro, as they
  do the exact same things.

- add asserts to catch mistakes better

- updated test 1309 accordingly

Closes #14562
lib/multi.c
lib/splay.c
lib/splay.h
tests/unit/unit1309.c