projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@176 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
type.c
diff --git
a/ltt/branches/poly/ltt/type.c
b/ltt/branches/poly/ltt/type.c
index 21636c24d5b0acb31730e280d1857d5eb17938fe..1f21f2c91b3e0360e2c54afded6f90764ff6df03 100644
(file)
--- a/
ltt/branches/poly/ltt/type.c
+++ b/
ltt/branches/poly/ltt/type.c
@@
-60,12
+60,12
@@
LttFacility *ltt_eventtype_facility(LttEventType *et)
*Input params
* et : an event type
*Return value
*Input params
* et : an event type
*Return value
- * unsigned
*
: the relative id
+ * unsigned
: the relative id
****************************************************************************/
****************************************************************************/
-unsigned
*
ltt_eventtype_relative_id(LttEventType *et)
+unsigned ltt_eventtype_relative_id(LttEventType *et)
{
{
- return
(unsigned*)&
et->index;
+ return et->index;
}
/*****************************************************************************
}
/*****************************************************************************
@@
-74,14
+74,12
@@
unsigned *ltt_eventtype_relative_id(LttEventType *et)
*Input params
* et : an event type
*Return value
*Input params
* et : an event type
*Return value
- * unsigned
*
: the id
+ * unsigned
: the id
****************************************************************************/
****************************************************************************/
-unsigned
*
ltt_eventtype_id(LttEventType *et)
+unsigned ltt_eventtype_id(LttEventType *et)
{
{
- unsigned *id = g_new(unsigned,1);
- *id = et->facility->base_id + et->index;
- return (unsigned*)id;
+ return et->facility->base_id + et->index;
}
/*****************************************************************************
}
/*****************************************************************************
This page took
0.022671 seconds
and
4
git commands to generate.