From eda0fe5f7955b829b31e05d57007f2940e128318 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 10 Oct 2007 17:35:59 +0000 Subject: [PATCH] type cast FIELD_ARRAY git-svn-id: http://ltt.polymtl.ca/svn@2622 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/lttv/state.c | 4 ++-- ltt/branches/poly/lttv/lttv/tracecontext.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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. */ -- 2.34.1