MINOR: startup: use global progname variable

Let's store progname in the global variable, as it is handy to use it in
different parts of code to format messages sent to stdout.

This reduces the number of arguments, which we should pass to some functions.
This commit is contained in:
Valentine Krasnobaeva
2024-11-21 17:24:37 +01:00
committed by Willy Tarreau
parent ef154a49e1
commit bfe0f9d02d
4 changed files with 13 additions and 13 deletions

View File

@@ -22,6 +22,6 @@ static inline int capget(cap_user_header_t hdrp, const cap_user_data_t datap)
}
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 from_uid, int to_uid, const char *progname);
int prepare_caps_from_permitted_set(int from_uid, int to_uid);
#endif /* _HAPROXY_LINUXCAP_H */