]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/generic/queue: remove "unused code", add comments
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 10 Aug 2020 15:47:44 +0000 (17:47 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 27 Aug 2020 08:07:31 +0000 (10:07 +0200)
commitabd75c28cd2b829326a75d5ca31ec98aeb279f05
treed0d654fa6dca96adc4a9051edf2fb80082a8e1d3
parent08798e5cefd2bf1dfa3e07dc86a35c9099a901d0
lib/generic/queue: remove "unused code", add comments

... and most importantly, review all the code.

Detail: queue_{head,tail}_impl() no longer "safely return" NULL
on an empty queue, as the API always dereferences the returned
pointer anyway.
lib/generic/queue.h