]> git.ipfire.org Git - thirdparty/kmod.git/commit
shared: use _nonnull_all_ decoration
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 7 Sep 2024 00:15:04 +0000 (01:15 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 7 Sep 2024 15:13:51 +0000 (10:13 -0500)
commit26f2c17b68b4f9fb90ae2c3011a3472cdb0f4b9d
tree9b4424b0e47b67474de6e7b31c22d3b3369d311a
parent6141edc7edbcf10bf03509770f6a50356cb0ea40
shared: use _nonnull_all_ decoration

Use the recently introduced attribute macro.

Note that functions such as memdup() and path_ends_with_kmod_ext() take
the (non-zero) length of their non-null string, thus can be annotated
with this _all_ variant.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/114
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
shared/util.h