diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-09-02 19:08:29 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-09-02 19:08:29 +0000 |
commit | 40bd43db835887c90b4278fecae751c6ae33c9eb (patch) | |
tree | 23a8315aa3db2235e9cb026b3cf61a52ee4f0c88 /epan/dissectors/packet-sflow.c | |
parent | c63ac0b2e35e2b73a64d1d82f068b4a2297fe09e (diff) |
Minor cleanup (mostly related to proto_reg_handoff...)
svn path=/trunk/; revision=26121
Diffstat (limited to 'epan/dissectors/packet-sflow.c')
-rw-r--r-- | epan/dissectors/packet-sflow.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/epan/dissectors/packet-sflow.c b/epan/dissectors/packet-sflow.c index 9cfd153ebd..f149b934d1 100644 --- a/epan/dissectors/packet-sflow.c +++ b/epan/dissectors/packet-sflow.c @@ -1492,24 +1492,21 @@ proto_register_sflow(void) void proto_reg_handoff_sflow(void) { - static int sflow_prefs_initialized = FALSE; + static gboolean sflow_prefs_initialized = FALSE; + if (!sflow_prefs_initialized) { sflow_handle = new_create_dissector_handle(dissect_sflow, proto_sflow); + data_handle = find_dissector("data"); sflow_prefs_initialized = TRUE; } - sflow_reinit(); - /*dissector_handle_t sflow_handle;*/ - /* * XXX - should this be done with a dissector table? */ - data_handle = find_dissector("data"); - if (global_dissect_samp_headers) { eth_withoutfcs_handle = find_dissector("eth_withoutfcs"); tr_handle = find_dissector("tr"); |