From: Justin Seyster Date: Sat, 27 Mar 2010 01:38:08 +0000 (-0400) Subject: Fixed sizeof() type. X-Git-Tag: release-v1.0~115 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=6b1d8522e36c618138cc2732cfc3bb725dccd3d2;p=interaspect.git Fixed sizeof() type. --- diff --git a/src/aop-pc-entry.c b/src/aop-pc-entry.c index 74c7c3f..51717e3 100644 --- a/src/aop-pc-entry.c +++ b/src/aop-pc-entry.c @@ -64,7 +64,7 @@ aop_match_function_entry () { struct aop_pointcut *pc; - pc = ggc_alloc (sizeof (struct aop_pointcut *)); + pc = ggc_alloc (sizeof (struct aop_pointcut)); pc->kind = ATP_ENTRY; pc->join_on = op_join_on_function_entry; pc->insert_before = op_default_insert_before; diff --git a/src/aop-pc-exit.c b/src/aop-pc-exit.c index 97f8891..ac76277 100644 --- a/src/aop-pc-exit.c +++ b/src/aop-pc-exit.c @@ -68,7 +68,7 @@ aop_match_function_exit () { struct aop_pointcut *pc; - pc = ggc_alloc (sizeof (struct aop_pointcut *)); + pc = ggc_alloc (sizeof (struct aop_pointcut)); pc->kind = ATP_EXIT; pc->join_on = op_join_on_function_exit; pc->insert_before = op_default_insert_before;