Add a basic .clang-tidy file and fix typedef warnings
[lttng-tools.git] / src / common / runas.hpp
index 1732286b8ed631f4e5585f37e8f3e27bb030c9cc..be806afc2f141baa4640cb0aa9346dd2a22d6d9d 100644 (file)
@@ -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,
This page took 0.023011 seconds and 4 git commands to generate.