From ebfe8f6d289e3d2649dcfd5a3902ba038b0ee2bd Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sat, 4 Oct 2014 11:28:35 -0400 Subject: Add editor modelines; Reformat as appropriate. Change-Id: I8e9c58b75eea85877d22024201e5d8d0e9a3dbfd Reviewed-on: https://code.wireshark.org/review/4459 Reviewed-by: Bill Meier --- epan/dissectors/packet-socketcan.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-socketcan.c') diff --git a/epan/dissectors/packet-socketcan.c b/epan/dissectors/packet-socketcan.c index 6f2aa55389..d464df3f5e 100644 --- a/epan/dissectors/packet-socketcan.c +++ b/epan/dissectors/packet-socketcan.c @@ -89,10 +89,10 @@ struct can_identifier }; static const enum_val_t can_high_level_protocol_dissector_options[] = { - { "raw", "Raw data (no further dissection)", CAN_DATA_DISSECTOR }, + { "raw", "Raw data (no further dissection)", CAN_DATA_DISSECTOR }, { "CANopen", "CANopen protocol", CAN_CANOPEN_DISSECTOR }, { "DeviceNet", "DeviceNet protocol", CAN_DEVICENET_DISSECTOR }, - { "J1939", "J1939 protocol", CAN_J1939_DISSECTOR }, + { "J1939", "J1939 protocol", CAN_J1939_DISSECTOR }, { NULL, NULL, 0 } }; @@ -169,7 +169,7 @@ dissect_socketcan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) break; case CAN_DEVICENET_DISSECTOR: /* XXX - Not sure this is correct. But the capture provided in - * bug 8564 provides CAN ID in little endian format, so this makes it work */ + * bug 8564 provides CAN ID in little endian format, so this makes it work */ can_id.id = GUINT32_SWAP_LE_BE(can_id.id); call_dissector_with_data(devicenet_handle, next_tvb, pinfo, tree, &can_id); @@ -274,3 +274,16 @@ proto_reg_handoff_socketcan(void) j1939_handle = find_dissector("j1939"); data_handle = find_dissector("data"); } + +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 8 + * tab-width: 8 + * indent-tabs-mode: t + * End: + * + * vi: set shiftwidth=8 tabstop=8 noexpandtab: + * :indentSize=8:tabSize=8:noTabs=false: + */ -- cgit v1.2.3