forked from osmocom/wireshark
Don't play type-punning games - they cause compiler warnings (not that
anybody appears to ever *set* sack_header->gaps). svn path=/trunk/; revision=21509
This commit is contained in:
parent
b16106f89f
commit
a346e923b7
|
@ -98,7 +98,7 @@ struct sack_chunk_header {
|
||||||
guint32 a_rwnd;
|
guint32 a_rwnd;
|
||||||
guint16 nr_of_gaps;
|
guint16 nr_of_gaps;
|
||||||
guint16 nr_of_dups;
|
guint16 nr_of_dups;
|
||||||
guint8 *tsns;
|
struct gaps *gaps;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct gaps {
|
struct gaps {
|
||||||
|
@ -205,7 +205,7 @@ static void draw_sack_graph(struct sctp_udata *u_data)
|
||||||
{
|
{
|
||||||
if (nr>0)
|
if (nr>0)
|
||||||
{
|
{
|
||||||
gap = (struct gaps *)(&(sack_header->tsns));
|
gap = sack_header->gaps;
|
||||||
for(i=0;i<nr; i++)
|
for(i=0;i<nr; i++)
|
||||||
{
|
{
|
||||||
gap_start=ntohs(gap->start);
|
gap_start=ntohs(gap->start);
|
||||||
|
|
Loading…
Reference in New Issue