From: Michael Tremer Date: Sat, 4 Jan 2025 15:52:41 +0000 (+0000) Subject: pakfire: Tell the compiler that we always expect a path for openat() X-Git-Tag: 0.9.30~535 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b803a165fced696a6d4957f961db1b465b2c3909;p=pakfire.git pakfire: Tell the compiler that we always expect a path for openat() Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/pakfire.h b/src/pakfire/pakfire.h index 4681fddb5..e69dc8f71 100644 --- a/src/pakfire/pakfire.h +++ b/src/pakfire/pakfire.h @@ -125,7 +125,7 @@ const char* pakfire_get_distro_version(struct pakfire* pakfire); const char* pakfire_get_distro_version_id(struct pakfire* pakfire); const char* pakfire_get_distro_tag(struct pakfire* pakfire); -int pakfire_openat(struct pakfire* pakfire, const char* path, int flags); +int pakfire_openat(struct pakfire* pakfire, const char* path, int flags) __nonnull((2)); #define pakfire_path(pakfire, path, format, ...) \ __pakfire_path(pakfire, path, sizeof(path), format, __VA_ARGS__)