projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: utils: unhandled close return value
[lttng-tools.git]
/
src
/
common
/
compat
/
directory-handle.cpp
diff --git
a/src/common/compat/directory-handle.cpp
b/src/common/compat/directory-handle.cpp
index 5c8d28db9de6db30e95589cfa074edb76784961c..cd4bf1769a739c189576716096304dea956aa70a 100644
(file)
--- a/
src/common/compat/directory-handle.cpp
+++ b/
src/common/compat/directory-handle.cpp
@@
-176,7
+176,7
@@
void lttng_directory_handle_release(struct urcu_ref *ref)
{
int ret;
struct lttng_directory_handle *handle =
{
int ret;
struct lttng_directory_handle *handle =
-
container_of(ref, struct lttng_directory_handle,
ref);
+
lttng::utils::container_of(ref, <tng_directory_handle::
ref);
if (handle->destroy_cb) {
handle->destroy_cb(handle, handle->destroy_cb_data);
if (handle->destroy_cb) {
handle->destroy_cb(handle, handle->destroy_cb_data);
@@
-557,7
+557,7
@@
static
void lttng_directory_handle_release(struct urcu_ref *ref)
{
struct lttng_directory_handle *handle =
void lttng_directory_handle_release(struct urcu_ref *ref)
{
struct lttng_directory_handle *handle =
-
container_of(ref, struct lttng_directory_handle,
ref);
+
lttng::utils::container_of(ref, <tng_directory_handle::
ref);
free(handle->base_path);
lttng_directory_handle_invalidate(handle);
free(handle->base_path);
lttng_directory_handle_invalidate(handle);
@@
-1151,6
+1151,7
@@
int lttng_directory_handle_remove_subdirectory_as_user(
return ret;
}
return ret;
}
+namespace {
struct rmdir_frame {
ssize_t parent_frame_idx;
DIR *dir;
struct rmdir_frame {
ssize_t parent_frame_idx;
DIR *dir;
@@
-1158,6
+1159,7
@@
struct rmdir_frame {
/* Size including '\0'. */
size_t path_size;
};
/* Size including '\0'. */
size_t path_size;
};
+} /* namespace */
static
void rmdir_frame_fini(void *data)
static
void rmdir_frame_fini(void *data)
This page took
0.025233 seconds
and
4
git commands to generate.