]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
pakfire: Tell the compiler that we always expect a path for openat()
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Jan 2025 15:52:41 +0000 (15:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 4 Jan 2025 15:52:41 +0000 (15:52 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/pakfire.h

index 4681fddb5f7f5f8a62921e190fcc256f73bc8e21..e69dc8f715972a7e26e5892d67dfe7d59a4119ec 100644 (file)
@@ -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__)