]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: introduce and use _nonnull_() 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)
commitbfea05f534d161e2e85fb3794d7678cb2656f231
treec4ccaa294c5dad0ed055d62b337817817403fb28
parent26f2c17b68b4f9fb90ae2c3011a3472cdb0f4b9d
libkmod: introduce and use _nonnull_() decoration

Introduce a new attribute macro and use it, placing it on the left hand
side of the function return value. This aligns with the attributes style
used in C23.

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>
libkmod/libkmod-internal.h
shared/macro.h