aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-03-14 00:43:39 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-03-14 00:43:39 +0000
commitf1f48a30bdf23e43dd64658514df939014d49516 (patch)
tree256c920e94aca20b143c88092e62d1f23013d707 /doc
parent4d5d55b60444e4128847d19900689f7fe151acaf (diff)
fix a bug and add a forward declaration in the example skeleton code
svn path=/trunk/; revision=13745
Diffstat (limited to 'doc')
-rw-r--r--doc/README.developer5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/README.developer b/doc/README.developer
index c2724ae201..74baee5e52 100644
--- a/doc/README.developer
+++ b/doc/README.developer
@@ -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;