Author: tpot
Date: 2005-08-27 12:24:02 +0000 (Sat, 27 Aug 2005)
New Revision: 9682

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9682

Log:
Jelmer, I think this fixes another case where the parser generator was
producing duplicate function definitions.  Can you check this out?

Modified:
   branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm


Changeset:
Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
===================================================================
--- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm       
2005-08-27 12:23:37 UTC (rev 9681)
+++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm       
2005-08-27 12:24:02 UTC (rev 9682)
@@ -326,7 +326,7 @@
        my $add = "";
 
        foreach (@{$e->{LEVELS}}) {
-               next if ($_->{TYPE} eq "SWITCH");
+               last if ($_->{TYPE} eq "SWITCH");
                pidl_def "static int $dissectorname$add(tvbuff_t *tvb, int 
offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);";
                pidl_code "static int";
                pidl_code "$dissectorname$add(tvbuff_t *tvb, int offset, 
packet_info *pinfo, proto_tree *tree, guint8 *drep)";

Reply via email to