Compile of packet-laplink.c failed because declaration of the variable 'laplink_module' was not at the start of a compound statement. Patch attached.


--
Jesper Peterson, Senior Software Developer
http://www.endace.com, +64 7 839 0540

Index: packet-laplink.c
===================================================================
RCS file: /cvsroot/ethereal/packet-laplink.c,v
retrieving revision 1.3
diff -u -r1.3 packet-laplink.c
--- packet-laplink.c    20 Oct 2003 19:25:48 -0000      1.3
+++ packet-laplink.c    20 Oct 2003 22:58:12 -0000
@@ -222,6 +222,7 @@
                &ett_laplink,
        };
 
+       module_t *laplink_module;
 
 /* Register the protocol name and description */
        proto_laplink = proto_register_protocol("Laplink",
@@ -230,8 +231,6 @@
 /* Required function calls to register the header fields and subtrees used */
        proto_register_field_array(proto_laplink, hf, array_length(hf));
        proto_register_subtree_array(ett, array_length(ett));
-
-       module_t *laplink_module;
 
        laplink_module = prefs_register_protocol(proto_laplink, NULL);
        prefs_register_bool_preference(laplink_module, "desegment_laplink_over_tcp",

Reply via email to