Ethereal-dev: [Ethereal-dev] Patch for packet-mtp3.c

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

From: "Peter Johansson" <Peter.Johansson@xxxxxxxxxxxx>
Date: Thu, 16 Mar 2006 11:17:24 +0100 (CET)
The supplied patch corrects the following compilation and run-time problems:
packet-mtp3.c(333) : warning C4033: 'mtp3_pc_hash' must return a value
packet-mtp3.c(334) : warning C4716: 'mtp3_pc_hash' : must return a value

/ Regards, Peter
Index: C:/ethereal-win32-libs/epan/dissectors/packet-mtp3.c
===================================================================
--- C:/ethereal-win32-libs/epan/dissectors/packet-mtp3.c	(revision 17642)
+++ C:/ethereal-win32-libs/epan/dissectors/packet-mtp3.c	(working copy)
@@ -330,7 +330,7 @@
 			pc = (addr_pc_p->pc & ANSI_PC_MASK) | ((addr_pc_p->ni) << 24) ;
 	}
 	
-	return;
+	return pc;
 }
 
 static void