projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: bt_object_{get,put}_ref(): accept a `const` parameter
[babeltrace.git]
/
lib
/
object.c
diff --git
a/lib/object.c
b/lib/object.c
index 600365441d25f495098ceb2d6fed8f6f18e9e33d..5194dd889b86c498990b346982523b692753286b 100644
(file)
--- a/
lib/object.c
+++ b/
lib/object.c
@@
-26,9
+26,9
@@
#include <babeltrace/assert-pre-internal.h>
#include <babeltrace/object-internal.h>
#include <babeltrace/assert-pre-internal.h>
#include <babeltrace/object-internal.h>
-void
*bt_object_get_ref(
void *ptr)
+void
bt_object_get_ref(const
void *ptr)
{
{
- struct bt_object *obj = ptr;
+ struct bt_object *obj =
(void *)
ptr;
if (unlikely(!obj)) {
goto end;
if (unlikely(!obj)) {
goto end;
@@
-38,12
+38,12
@@
void *bt_object_get_ref(void *ptr)
bt_object_get_no_null_check(obj);
end:
bt_object_get_no_null_check(obj);
end:
- return
ptr
;
+ return;
}
}
-void bt_object_put_ref(void *ptr)
+void bt_object_put_ref(
const
void *ptr)
{
{
- struct bt_object *obj = ptr;
+ struct bt_object *obj =
(void *)
ptr;
if (unlikely(!obj)) {
return;
if (unlikely(!obj)) {
return;
This page took
0.024274 seconds
and
4
git commands to generate.