aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/sctp_graph_dlg.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2009-09-04 12:52:28 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2009-09-04 12:52:28 +0000
commit648bdb564bd49784b79310882e6d162f380cdb0a (patch)
tree2fb991706b7799c97206b65edc553ca2f9bbddc3 /gtk/sctp_graph_dlg.c
parent56366dcb591c030135f46c185d8e73d6b5dfd551 (diff)
Fix compilation.
svn path=/trunk/; revision=29696
Diffstat (limited to 'gtk/sctp_graph_dlg.c')
-rw-r--r--gtk/sctp_graph_dlg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/sctp_graph_dlg.c b/gtk/sctp_graph_dlg.c
index bf9749c240..ca88591213 100644
--- a/gtk/sctp_graph_dlg.c
+++ b/gtk/sctp_graph_dlg.c
@@ -266,7 +266,7 @@ static void draw_sack_graph(struct sctp_udata *u_data)
}
if (dup_nr > 0)
{
- dup_list = (char *)&(sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps));
+ dup_list = (guint32 *)(&(sack_header->nr_of_dups)+sizeof(guint16)+(nr*sizeof(struct gaps)));
dup = g_ntohl(dup_list[0]);
for(i = 0; i < dup_nr; i++)
{
@@ -279,9 +279,9 @@ static void draw_sack_graph(struct sctp_udata *u_data)
xvalue = (guint32)(LEFT_BORDER+u_data->io->offset+u_data->io->x_interval*diff);
yvalue = (guint32)(u_data->io->pixmap_height-BOTTOM_BORDER-POINT_SIZE -u_data->io->offset-((SUB_32(dup,min_tsn))*u_data->io->y_interval));
if (xvalue >= LEFT_BORDER+u_data->io->offset &&
- xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset &&
- yvalue >= TOP_BORDER-u_data->io->offset-POINT_SIZE &&
- yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)
+ xvalue <= u_data->io->pixmap_width-RIGHT_BORDER+u_data->io->offset &&
+ yvalue >= TOP_BORDER-u_data->io->offset-POINT_SIZE &&
+ yvalue <= u_data->io->pixmap_height-BOTTOM_BORDER-u_data->io->offset)
gdk_draw_arc(u_data->io->pixmap,cyan_gc,TRUE,
xvalue,
yvalue,