From 9b3a27f70c31ac95fc092c613f3881d1be60a705 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 18 Apr 2024 10:08:46 +0200 Subject: [PATCH] BUILD: linuxcap: Properly declare prepare_caps_from_permitted_set() Expected arguments were not specified in the prepare_caps_from_permitted_set() function declaration. It is an issue for some compilers, for instance clang. But at the end, it is unexpected and deprecated. No backport needed, except if f0b6436f57 ("MEDIUM: capabilities: check process capabilities sets") is backported. --- include/haproxy/linuxcap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/linuxcap.h b/include/haproxy/linuxcap.h index 486d85f66..9395b7b1e 100644 --- a/include/haproxy/linuxcap.h +++ b/include/haproxy/linuxcap.h @@ -3,6 +3,6 @@ int prepare_caps_for_setuid(int from_uid, int to_uid); int finalize_caps_after_setuid(int from_uid, int to_uid); -int prepare_caps_from_permitted_set(); +int prepare_caps_from_permitted_set(int from_uid, int to_uid, const char *program_name); #endif /* _HAPROXY_LINUXCAP_H */