aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-12 01:19:28 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-12 01:19:28 +0000
commitc5b1e310e332942052e44b40263f2621d9c7a6a3 (patch)
tree916f0676e16c576b76982e2f17d4b0c2fdcc0d47 /gtk
parent0d43503a564e32442ce7aa49d50c15902143574c (diff)
From Motonori Shindo: add a cast of "ip" to "guint8 *" so pointer
arithmetic can be done on it. svn path=/trunk/; revision=4384
Diffstat (limited to 'gtk')
-rw-r--r--gtk/tcp_graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index 112b43abc1..fc85b34b57 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -3,7 +3,7 @@
* By Pavel Mores <pvl@uh.cz>
* Win32 port: rwh@unifiedtech.com
*
- * $Id: tcp_graph.c,v 1.8 2001/12/10 23:27:25 guy Exp $
+ * $Id: tcp_graph.c,v 1.9 2001/12/12 01:19:28 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1818,7 +1818,7 @@ static int get_headers (frame_data *fd, char *pd, struct segment *hdrs)
/* printf ("transport protocol not TCP: %#1x\n", ip->protocol); */
return FALSE;
}
- tcp = (struct tcphdr * )(ip + 4*IHL((struct iphdr *)ip));
+ tcp = (struct tcphdr *)((guint8 *)ip + 4*IHL((struct iphdr *)ip));
memcpy(&hdrs->iphdr, ip, sizeof (struct iphdr));
memcpy(&hdrs->tcphdr, tcp, sizeof (struct tcphdr));