fix a bug and add a forward declaration in the example skeleton code

svn path=/trunk/; revision=13745
This commit is contained in:
Ulf Lamping 2005-03-14 00:43:39 +00:00
parent 4d5d55b604
commit f1f48a30bd

View File

@ -511,6 +511,9 @@ SVN repository (checked in).
in a header file. If not, a header file is not needed at all. */
#include "packet-PROTOABBREV.h"
/* Forward declaration we need below */
void proto_reg_handoff_PROTOABBREV(void);
/* Initialize the protocol and registered fields */
static int proto_PROTOABBREV = -1;
static int hf_PROTOABBREV_FIELDABBREV = -1;
@ -691,7 +694,7 @@ proto_reg_handoff_PROTOABBREV(void)
{
static gboolean inited = FALSE;
if( inited ) {
if( !inited ) {
dissector_handle_t PROTOABBREV_handle;