aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-06-01 21:47:45 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-06-01 21:47:45 +0000
commit496e7909bae251b0b5af6f485256df4102492583 (patch)
treebd08e2ebdc78e8419539505c2c074cf6325accd8 /wiretap
parent29839540cf24d65da1f646c3e347deb16bdd6009 (diff)
Try Jakub's casting with GPOINTER_TO_INT().
svn path=/trunk/; revision=28579
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/netscaler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/netscaler.c b/wiretap/netscaler.c
index 2c72960ade..a1b976e89e 100644
--- a/wiretap/netscaler.c
+++ b/wiretap/netscaler.c
@@ -356,13 +356,13 @@ typedef struct nspr_pktracepart_v23
#define myoffsetof(type,fieldname) (&(((type*)0)->fieldname))
#define __TNO(enumprefix,structprefix,structname,hdrname,structfieldname) \
- guint8 enumprefix##_##hdrname##_offset = (guint8)(guint)(void *)myoffsetof(nspr_##structname##_t,structprefix##_##structfieldname);
+ guint8 enumprefix##_##hdrname##_offset = (guint8)GPOINTER_TO_INT(myoffsetof(nspr_##structname##_t,structprefix##_##structfieldname));
#define __TNL(enumprefix,structprefix,structname,hdrname,structfieldname) \
guint8 enumprefix##_##hdrname##_len = (guint8)sizeof(((nspr_##structname##_t*)0)->structprefix##_##structfieldname);
#define __TNV1O(enumprefix,structprefix,structname,hdrname,structfieldname) \
- guint8 enumprefix##_##hdrname##_offset = (guint8)(guint)(void *)myoffsetof(nspr_##structname##_t,structfieldname);
+ guint8 enumprefix##_##hdrname##_offset = (guint8)GPOINTER_TO_INT(myoffsetof(nspr_##structname##_t,structfieldname));
#define __TNV1L(enumprefix,structprefix,structname,hdrname,structfieldname) \
guint8 enumprefix##_##hdrname##_len = (guint8)sizeof(((nspr_##structname##_t*)0)->structfieldname);