aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-04-22 20:29:31 +0000
committerGuy Harris <guy@alum.mit.edu>2007-04-22 20:29:31 +0000
commita346e923b747b10ffe776ab5819b3199c956cce1 (patch)
tree200d67ab19c2ee43545c61a28881fac891b5e901 /gtk
parentb16106f89f474978b22d8c7e555bc61634d6766f (diff)
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/sctp_graph_dlg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c
index acb273fa63..ba07a57017 100644
--- a/gtk/sctp_graph_dlg.c
+++ b/gtk/sctp_graph_dlg.c
@@ -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);