Wireshark-dev: [Wireshark-dev] Compilation warning (error on Win) fix for packet-smb.c
From: "Peter Johansson" <peterjohansson73@xxxxxxxxx>
Date: Tue, 27 Mar 2007 14:37:30 +0200
This patch takes care of a compilation warning that produces a compilation error on Windows (due to the newly introduced /WX compiler option).
 
Regards, Peter
Index: C:/wireshark-win32-libs/epan/dissectors/packet-smb.c
===================================================================
--- C:/wireshark-win32-libs/epan/dissectors/packet-smb.c	(revision 21226)
+++ C:/wireshark-win32-libs/epan/dissectors/packet-smb.c	(working copy)
@@ -15984,9 +15984,9 @@
 	 * need to track it
 	 */
 	if(!pinfo->fd->flags.visited && si->cmd==0x75 && !si->request){
-		offset=dissect_smb_tid(tvb, pinfo, htree, offset, si->tid, TRUE, FALSE);
+		offset=dissect_smb_tid(tvb, pinfo, htree, offset, (guint16)si->tid, TRUE, FALSE);
 	} else {
-		offset=dissect_smb_tid(tvb, pinfo, htree, offset, si->tid, FALSE, FALSE);
+		offset=dissect_smb_tid(tvb, pinfo, htree, offset, (guint16)si->tid, FALSE, FALSE);
 	}
 
 	/* PID */