projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Return pointer when using bt_get()
[babeltrace.git]
/
lib
/
ref.c
diff --git
a/lib/ref.c
b/lib/ref.c
index 0ac1014c626a47940d78d1da8a5d6f6c53f88194..e642e266de87543c24f9f3819e6c8b7a577c1b46 100644
(file)
--- a/
lib/ref.c
+++ b/
lib/ref.c
@@
-27,13
+27,14
@@
#include <babeltrace/ref-internal.h>
#include <babeltrace/object-internal.h>
-void bt_get(void *obj)
+void
*
bt_get(void *obj)
{
if (obj) {
struct bt_object *base = obj;
bt_ref_get(&base->ref_count);
}
+ return obj;
}
void bt_put(void *obj)
This page took
0.02278 seconds
and
4
git commands to generate.