Ethereal-dev: [Ethereal-dev] epan/dissectors/packet-jxta.c compilation error

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

From: Peter Kovář <peter.kovar@xxxxxxxxx>
Date: Thu, 16 Jun 2005 10:57:27 +0200
Hi all Ethereal developers!

Attached one line patch fixes compilation error with GCC 4.0.0 in
epan/dissectors/packet-jxta.c caused by assignment of NULL instead of
enum port_type.

Peter Kovář
50 65 74 65 72 20 4B 6F 76 C3 A1 C5 99
Index: epan/dissectors/packet-jxta.c
===================================================================
--- epan/dissectors/packet-jxta.c	(revision 14659)
+++ epan/dissectors/packet-jxta.c	(working copy)
@@ -584,7 +584,7 @@
         guint32 saved_src_port = 0;
         address saved_dst_addr;
         guint32 saved_dst_port = 0;
-        port_type saved_port_type = NULL;
+        port_type saved_port_type = PT_NONE;
 
         if( (AT_NONE != tpt_conv_data->initiator_address.type) && (AT_NONE != tpt_conv_data->receiver_address.type) ) {
             peer_conversation =