From: compudj Date: Fri, 24 Dec 2004 13:44:15 +0000 (+0000) Subject: ltt-types fix X-Git-Tag: v0.12.20~2640 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e2858ae1861236182a54a00daaeaa7d2a0f8c2a8;p=lttv.git ltt-types fix git-svn-id: http://ltt.polymtl.ca/svn@849 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/ltt/ltt-types.h b/ltt/branches/poly/ltt/ltt-types.h index 51299b86..a1701874 100644 --- a/ltt/branches/poly/ltt/ltt-types.h +++ b/ltt/branches/poly/ltt/ltt-types.h @@ -41,33 +41,33 @@ inline gint64 ltt_get_int64(LttTrace t, void *ptr) { - return (gint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(x): x); + return (gint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr); } inline guint64 ltt_get_uint64(LttTrace t, void *ptr) { - return (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(x): x); + return (guint64) (t->reverse_byte_order ? GUINT64_SWAP_LE_BE(ptr): ptr); } inline gint32 ltt_get_int32(LttTrace t, void *ptr) { - return (gint32) (t->reverse_byte_order ? GUINT32_SWAP_LE_BE(x): x); + return (gint32) (t->reverse_byte_order ? GUINT32_SWAP_LE_BE(ptr): ptr); } inline guint32 ltt_get_uint32(LttTrace t, void *ptr) { - return (guint32) (t->reverse_byte_order ? GUINT32_SWAP_LE_BE(x): x); + return (guint32) (t->reverse_byte_order ? GUINT32_SWAP_LE_BE(ptr): ptr); } inline gint16 ltt_get_int16(LttTrace t, void *ptr) { - return (gint16) (t->reverse_byte_order ? GUINT16_SWAP_LE_BE(x): x); + return (gint16) (t->reverse_byte_order ? GUINT16_SWAP_LE_BE(ptr): ptr); } inline guint16 ltt_get_uint16(LttTrace t, void *ptr) { - return (guint16) (t->reverse_byte_order ? GUINT16_SWAP_LE_BE(x): x); + return (guint16) (t->reverse_byte_order ? GUINT16_SWAP_LE_BE(ptr): ptr); } #endif // LTT_TYPES_H