summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-tcp.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-10-04 18:10:29 +0100
committerMichael Mann <mmann78@netscape.net>2015-10-05 14:34:53 +0000
commitc00420efa258af2599d8ddf773257b0326a1682f (patch)
tree7573eae95116266b5c45f2f5bb26f6bf67ab7565 /epan/dissectors/packet-tcp.c
parent9b83b091b45e8605a95f664a3c9bbd03090991a8 (diff)
downloadwireshark-c00420efa258af2599d8ddf773257b0326a1682f.tar.gz
Move utf8_entities.h to wsutil
Change-Id: I6298b3de5f0a1cb988014ff16082eaf8c2a3c3c0 Reviewed-on: https://code.wireshark.org/review/10786 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-tcp.c')
-rw-r--r--epan/dissectors/packet-tcp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-tcp.c b/epan/dissectors/packet-tcp.c
index ef939b2c25..21011f470c 100644
--- a/epan/dissectors/packet-tcp.c
+++ b/epan/dissectors/packet-tcp.c
@@ -37,6 +37,7 @@
#include <epan/reassemble.h>
#include <epan/decode_as.h>
#include <epan/in_cksum.h>
+#include <wsutil/utf8_entities.h>
#include "packet-tcp.h"
#include "packet-ip.h"
@@ -501,11 +502,6 @@ static dissector_handle_t data_handle;
static dissector_handle_t sport_handle;
static guint32 tcp_stream_count;
-/* XXX - redefined here to not create UI dependencies */
-#define UTF8_LEFTWARDS_ARROW "\xe2\x86\x90" /* 8592 / 0x2190 */
-#define UTF8_RIGHTWARDS_ARROW "\xe2\x86\x92" /* 8594 / 0x2192 */
-#define UTF8_LEFT_RIGHT_ARROW "\xe2\x86\x94" /* 8596 / 0x2194 */
-
static const int *tcp_option_mptcp_capable_flags[] = {
&hf_tcp_option_mptcp_checksum_flag,
&hf_tcp_option_mptcp_B_flag,
@@ -4375,7 +4371,7 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dst_port_str = tcp_port_to_display(wmem_packet_scope(), tcph->th_dport);
col_add_lstr(pinfo->cinfo, COL_INFO,
src_port_str,
- " \xe2\x86\x92 ", /* UTF8_RIGHTWARDS_ARROW */
+ " "UTF8_RIGHTWARDS_ARROW" ",
dst_port_str,
COL_ADD_LSTR_TERMINATOR);