Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] packet-aim.c does not compile on MSVC6

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Thomas Boehne <TBoehne@xxxxxxxx>
Date: Fri, 17 Sep 2004 11:20:07 +0200
packet-aim.c does not compile on MSVC because there was code before a
declaration. See attached patch.

Greetings,
Thomas Böhne

-- 
Jäger Computergesteuerte Messtechnik GmbH
Thomas Böhne
Rheinstraße 2-4
64653 Lorsch
Germany
Phone: +49-6251-9632-0


--- packet-aim.c.original	2004-09-17 11:11:52.000000000 +0200
+++ packet-aim.c	2004-09-17 11:12:16.000000000 +0200
@@ -730,8 +730,10 @@
     }
   
   if(flags & FNAC_FLAG_CONTAINS_VERSION) {
-	guint16 len = tvb_get_ntohs(tvb, offset); offset+=2;
-	int oldoffset = offset;
+	guint16 len = tvb_get_ntohs(tvb, offset); 
+	int oldoffset;
+	offset+=2;
+	oldoffset = offset;
 	
 	while(offset < oldoffset + len) {
 	  offset = dissect_aim_tlv(tvb, pinfo, offset, aim_tree, fnac_tlvs);