compat: off64_t is not defined by musl
[lttng-tools.git] / src / common / runas.hpp
index 1732286b8ed631f4e5585f37e8f3e27bb030c9cc..86c56c987381bb483e587c9edcd8852a491de2a6 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,
@@ -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 */
This page took 0.022992 seconds and 4 git commands to generate.