]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/generic/array: extend the return type of array_push*() docs-develop-cove-uiak3c/deployments/5118
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 12 Sep 2024 12:54:16 +0000 (14:54 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 12 Sep 2024 13:37:21 +0000 (15:37 +0200)
commit20f67c0925fd6b050efcf565714720679f1fcd33
tree34218c379ac74d1a4292190b47e3cb6bbd2ba5cc
parent9f170a809a362093a9a010b0ac37d259534dc26f
lib/generic/array: extend the return type of array_push*()

In case of no error, the index is returned,
but `int` isn't a great choice for returning array indices.
(though I doubt that we can get anywhere near 2^31 elements in practice)

Detected by Coverity.
lib/generic/array.h