diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-04-22 03:53:01 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-04-22 03:53:01 +0000 |
commit | 43d372fe586d3f7a6386837b8b8e4c0efa983faa (patch) | |
tree | 1c7a034c6ce3754b5615ed1681ec990c8667bb7a /epan/dissectors/packet-infiniband.c | |
parent | 602b0747ce352806870e98b2f0f74a392813029e (diff) |
ep_alloc() returns a properly-aligned value for all uses; that's why it
returns void * rather than guint8 *. Don't pointer-convert that
information away; otherwise, compilers might whine about safe pointer
casts.
svn path=/trunk/; revision=36794
Diffstat (limited to 'epan/dissectors/packet-infiniband.c')
-rw-r--r-- | epan/dissectors/packet-infiniband.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-infiniband.c b/epan/dissectors/packet-infiniband.c index e799a2489c..8cc36d225d 100644 --- a/epan/dissectors/packet-infiniband.c +++ b/epan/dissectors/packet-infiniband.c @@ -1500,8 +1500,8 @@ static guint32 opCode_PAYLD[] = { * RC_ACKNOWLEDGE * }; */ -static gchar *src_addr = NULL, /* the address to be displayed in the source/destination columns */ - *dst_addr = NULL; /* (lid/gid number) will be stored here */ +static void *src_addr = NULL, /* the address to be displayed in the source/destination columns */ + *dst_addr = NULL; /* (lid/gid number) will be stored here */ #define ADDR_MAX_LEN sizeof("IPv6 over IB Packet") /* maximum length of src_addr and dst_addr is for IPoIB where we print an explanation string */ |