type cast FIELD_ARRAY
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 10 Oct 2007 17:35:59 +0000 (17:35 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 10 Oct 2007 17:35:59 +0000 (17:35 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@2622 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/lttv/state.c
ltt/branches/poly/lttv/lttv/tracecontext.h

index 09d18d04725f706ba8eaf200994f462906bd48ad..792f9cefe517cfe00f1e88471866b509f04b3b28 100644 (file)
@@ -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);
 //    
index df15a56c2e67cc1998b0ef9353cc58fe76fd37b6..eb9e15bec9222b092712aed1b87f475db7c4070c 100644 (file)
@@ -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.
  */
This page took 0.026419 seconds and 4 git commands to generate.