X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Frunas.hpp;fp=src%2Fcommon%2Frunas.hpp;h=be806afc2f141baa4640cb0aa9346dd2a22d6d9d;hp=1732286b8ed631f4e5585f37e8f3e27bb030c9cc;hb=e665dfbce25215d5ec77ff03a279c7163b337db1;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f 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,