From 86259d5a9e9c43a76c2ba3f45c8b0e2252b6346e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 20 Oct 2003 23:05:41 +0000 Subject: 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 --- packet-laplink.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'packet-laplink.c') 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 * - * $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 @@ -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", -- cgit v1.2.3