X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.hpp;h=be806afc2f141baa4640cb0aa9346dd2a22d6d9d;hb=e665dfbce25215d5ec77ff03a279c7163b337db1;hp=1732286b8ed631f4e5585f37e8f3e27bb030c9cc;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/common/runas.hpp b/src/common/runas.hpp index 1732286b8..be806afc2 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,