Fix: pass private data to context callbacks
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Apr 2021 16:01:15 +0000 (12:01 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 7 Apr 2021 16:06:54 +0000 (12:06 -0400)
commit6ba6fd60507f8e045bdc4f1be14e9d99c6a15f7f
tree18277a8cc759ae4b0b9f94ebb22ab223db0cf505
parentf26f2f9bb496a2dc053095310ab8d42b63a3b556
Fix: pass private data to context callbacks

commit 4e48b5d2debaf ("Refactoring: add back constness of public API structures")
changes the type of the first argument received by context callbacks
from a struct lttng_ust_ctx_field pointer to a void private data pointer.

That commit failed to change some call sites, which were still passing
the struct lttng_ust_ctx_field pointer rather than the private data
pointer. This was not caught by compiler errors because we are loosening
from a structure pointer to a void pointer.

Fixes: #1303
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I653f454b5dc4cfcc229b3a0e17b2dc6abe9fd658
liblttng-ust/lttng-context.c
liblttng-ust/lttng-ring-buffer-client-template.h
This page took 0.025407 seconds and 4 git commands to generate.