X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.hpp;h=86c56c987381bb483e587c9edcd8852a491de2a6;hb=57fd993799a2b081c826f6fc8def32d28d526bfb;hp=1732286b8ed631f4e5585f37e8f3e27bb030c9cc;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/runas.hpp b/src/common/runas.hpp index 1732286b8..86c56c987 100644 --- a/src/common/runas.hpp +++ b/src/common/runas.hpp @@ -29,7 +29,7 @@ * A negative return value will cause the run-as process to exit with a non-zero * value. */ -typedef int (*post_fork_cleanup_cb)(void *user_data); +using post_fork_cleanup_cb = int (*)(void *); int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid); int run_as_mkdirat_recursive(int dirfd, const char *path, mode_t mode, @@ -59,6 +59,6 @@ int run_as_generate_filter_bytecode(const char *filter_expression, struct lttng_bytecode **bytecode); int run_as_create_worker(const char *procname, post_fork_cleanup_cb clean_up_func, void *clean_up_user_data); -void run_as_destroy_worker(void); +void run_as_destroy_worker(); #endif /* _RUNAS_H */