aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-udp.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-udp.c
parent9b83b091b45e8605a95f664a3c9bbd03090991a8 (diff)
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-udp.c')
-rw-r--r--epan/dissectors/packet-udp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c
index e7d26e30ea..d0acf286ad 100644
--- a/epan/dissectors/packet-udp.c
+++ b/epan/dissectors/packet-udp.c
@@ -36,6 +36,7 @@
#include <epan/expert.h>
#include <epan/exceptions.h>
#include <epan/show_exception.h>
+#include <wsutil/utf8_entities.h>
#include "packet-udp.h"
@@ -187,11 +188,6 @@ typedef struct
heur_dtbl_entry_t *heur_dtbl_entry;
} udp_p_info_t;
-/* 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 void
udp_src_prompt(packet_info *pinfo, gchar *result)
{
@@ -716,7 +712,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto)
dst_port_str = udp_port_to_display(wmem_packet_scope(), udph->uh_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);