Fix C99 strict compatibility: don't use void * for function pointers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 19 Jun 2012 17:45:05 +0000 (13:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 19 Jun 2012 17:45:05 +0000 (13:45 -0400)
commitfbdeb5ecb8ff9b7d73a72de9fc66d07f7797d93f
tree10b3df0d5c9178d80bed16d97d72952a9972729f
parent4d3b06fe77725f267b85502dbeb51991296b9389
Fix C99 strict compatibility: don't use void * for function pointers

compiling public headers with --std=x99 -pedantic shows:

warning: ISO C forbids conversion of object pointer to function pointer type

Use "void (*func)(void)" to represent a generic function pointer rather
than "void *".

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint-types.h
include/lttng/tracepoint.h
include/lttng/ust-events.h
include/lttng/ust-tracepoint-event.h
liblttng-ust/ltt-events.c
liblttng-ust/tracepoint-internal.h
liblttng-ust/tracepoint.c
This page took 0.026884 seconds and 4 git commands to generate.