]> git.ipfire.org Git - thirdparty/kmod.git/commit
shared: switch array API to size_t
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 13 Aug 2024 17:36:46 +0000 (19:36 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 16 Aug 2024 05:00:00 +0000 (00:00 -0500)
commit6ef3643d0a622dd2fd9fcfa949f40756cf422391
tree8fa15b1652d9e80a496e83f7a7d8b6f6ba8e950a
parent251654320ccdfeba3ef083b512eaaa68bf8e8cbc
shared: switch array API to size_t

The position in array_remove_at could be theoretically larger
than unsigned int. Switch to size_t to stay in sync with all
other such arguments in array context.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/68
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/array.c
shared/array.h