From: compudj Date: Wed, 10 Oct 2007 17:35:59 +0000 (+0000) Subject: type cast FIELD_ARRAY X-Git-Tag: v0.12.20~867 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=eda0fe5f7955b829b31e05d57007f2940e128318;p=lttv.git type cast FIELD_ARRAY git-svn-id: http://ltt.polymtl.ca/svn@2622 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/lttv/state.c b/ltt/branches/poly/lttv/lttv/state.c index 09d18d04..792f9cef 100644 --- a/ltt/branches/poly/lttv/lttv/state.c +++ b/ltt/branches/poly/lttv/lttv/state.c @@ -1631,8 +1631,8 @@ create_name_tables(LttvTraceState *tcs) if(!lttv_trace_find_hook(tcs->parent.t, LTT_EVENT_SYSCALL_ENTRY, - LTT_FIELD_SYSCALL_ID, 0, 0, - NULL, NULL, &th)) { + FIELD_ARRAY(LTT_FIELD_SYSCALL_ID), + NULL, NULL)) { // th = lttv_trace_hook_get_first(&th); // diff --git a/ltt/branches/poly/lttv/lttv/tracecontext.h b/ltt/branches/poly/lttv/lttv/tracecontext.h index df15a56c..eb9e15be 100644 --- a/ltt/branches/poly/lttv/lttv/tracecontext.h +++ b/ltt/branches/poly/lttv/lttv/tracecontext.h @@ -279,7 +279,7 @@ typedef struct _LttvTraceHook { gpointer hook_data; } LttvTraceHook; -#define FIELD_ARRAY(val) ({ (val), 0 }) +#define FIELD_ARRAY(val) ((GQuark[]){ (val), 0 }) /* Get the head of marker list correcponding to the given trace hook. */