aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ubertooth.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-06-20 09:43:28 -0700
committerGuy Harris <guy@alum.mit.edu>2014-06-20 16:43:56 +0000
commitce3d2ff3ded3eccb9d64c6cb46c64ad8f8a837b9 (patch)
tree8a4ddc4ec1607716254ada75c607094da614f131 /epan/dissectors/packet-ubertooth.c
parent4df6b5178496422ddfc3b9256af763b847d1a2c7 (diff)
Rename dissector_add_handle() to dissector_add_for_decode_as().
Hopefully that name makes it clear what the routiner's purpose is, and will encourage people to use it rather than using dissector_add_uint() with a bogus integer value. Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8 Reviewed-on: https://code.wireshark.org/review/2483 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ubertooth.c')
-rw-r--r--epan/dissectors/packet-ubertooth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ubertooth.c b/epan/dissectors/packet-ubertooth.c
index 4ac66a3d62..843cf90382 100644
--- a/epan/dissectors/packet-ubertooth.c
+++ b/epan/dissectors/packet-ubertooth.c
@@ -3317,8 +3317,8 @@ proto_reg_handoff_ubertooth(void)
dissector_add_uint("usb.product", (0x1d50 << 16) | 0x6000, ubertooth_handle); /* Ubertooth Zero */
dissector_add_uint("usb.product", (0x1d50 << 16) | 0x6002, ubertooth_handle); /* Ubertooth One */
- dissector_add_handle("usb.device", ubertooth_handle);
- dissector_add_handle("usb.protocol", ubertooth_handle);
+ dissector_add_for_decode_as("usb.device", ubertooth_handle);
+ dissector_add_for_decode_as("usb.protocol", ubertooth_handle);
}
/*