proto_reg_handoff... doesn't need 'if (!inited) ...';
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Jun 2009 12:36:50 +0000 (12:36 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 15 Jun 2009 12:36:50 +0000 (12:36 +0000)
Remove unneeded forward declaration;
Set emacs editor modelines value to a "safe" value.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28734 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-banana.c

index 71b43edfaa2a47eae2ef8067a026d58b7ac5a5b1..edc5fc8d3e21826985a754210cc6481709468000 100755 (executable)
@@ -42,9 +42,6 @@
 #include <epan/prefs.h>
 #include <epan/expert.h>
 
-/* Forward declaration we need below */
-void proto_reg_handoff_banana(void);
-
 /* Initialize the protocol and registered fields */
 static int proto_banana = -1;
 static int hf_banana_list = -1;
@@ -353,14 +350,7 @@ proto_register_banana(void)
 void
 proto_reg_handoff_banana(void)
 {
-       static gboolean inited = FALSE;
-
-       if (!inited) {
-
-               banana_handle = new_create_dissector_handle(dissect_banana, proto_banana);
-
-               inited = TRUE;
-       }
+       banana_handle = new_create_dissector_handle(dissect_banana, proto_banana);
 }
 
 /*
@@ -369,7 +359,7 @@ proto_reg_handoff_banana(void)
  * Local variables:
  * c-basic-offset: 4
  * tab-width: 4
- * indent-tabs-mode: tabs
+ * indent-tabs-mode: t
  * End:
  *
  * ex: set shiftwidth=4 tabstop=4 noexpandtab