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 22:01:04 +0000 (18:01 -0400)
commit0264ec6ce3555f2d14d609f32cfd9abc2117fa57
tree7c742dc8067a0a11592f9c3e5e13ec8dc57ccc7f
parent8ae4aa03362d5ce0413d9fc92cac2b96e89d579b
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.024925 seconds and 4 git commands to generate.