diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-20 23:05:41 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-20 23:05:41 +0000 |
commit | 13c47d16802ba38aba8795494d982cdc1fc5e8d4 (patch) | |
tree | b064702dbc8ee16f9aff17931bd1c727f6a3cdd5 /packet-laplink.c | |
parent | b549085f9b1fe781812bbb7aea955feabf6fb74a (diff) |
From Jesper Peterson: get rid of GCCism/C++ism - C89 doesn't allow
variables to be declared in the middle of executable code.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8741 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-laplink.c')
-rw-r--r-- | packet-laplink.c | 5 |
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", |