aboutsummaryrefslogtreecommitdiffstats
path: root/packet-laplink.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-20 23:05:41 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-20 23:05:41 +0000
commit86259d5a9e9c43a76c2ba3f45c8b0e2252b6346e (patch)
treeb064702dbc8ee16f9aff17931bd1c727f6a3cdd5 /packet-laplink.c
parentef74a0b574ccfbe412a5846cd8faf1b04418e120 (diff)
From Jesper Peterson: get rid of GCCism/C++ism - C89 doesn't allow
variables to be declared in the middle of executable code. svn path=/trunk/; revision=8741
Diffstat (limited to 'packet-laplink.c')
-rw-r--r--packet-laplink.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-laplink.c b/packet-laplink.c
index 8ed355f58c..016444722e 100644
--- a/packet-laplink.c
+++ b/packet-laplink.c
@@ -2,7 +2,7 @@
* Routines for laplink dissection
* Copyright 2003, Brad Hards <bradh@frogmouth.net>
*
- * $Id: packet-laplink.c,v 1.3 2003/10/20 19:25:48 guy Exp $
+ * $Id: packet-laplink.c,v 1.4 2003/10/20 23:05:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -222,6 +222,7 @@ proto_register_laplink(void)
&ett_laplink,
};
+ module_t *laplink_module;
/* Register the protocol name and description */
proto_laplink = proto_register_protocol("Laplink",
@@ -231,8 +232,6 @@ proto_register_laplink(void)
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",
"Desegment all Laplink-over-TCP messages",