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:
Guy Harris 2007-04-22 20:29:31 +00:00
parent b16106f89f
commit a346e923b7
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ struct sack_chunk_header {
guint32 a_rwnd;
guint16 nr_of_gaps;
guint16 nr_of_dups;
guint8 *tsns;
struct gaps *gaps;
};
struct gaps {
@ -205,7 +205,7 @@ static void draw_sack_graph(struct sctp_udata *u_data)
{
if (nr>0)
{
gap = (struct gaps *)(&(sack_header->tsns));
gap = sack_header->gaps;
for(i=0;i<nr; i++)
{
gap_start=ntohs(gap->start);