aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acn.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-18 20:45:57 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2009-03-18 20:45:57 +0000
commite86272a09fd42531118c042197f74847f518f0a6 (patch)
tree06aa7cdffc0d6385b33f52659febdfe2f69ae519 /epan/dissectors/packet-acn.c
parent6d5300f07f9361df57aeaf96958c3f1afaa7075c (diff)
Use g_strreverse() to reverse strings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27783 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-acn.c')
-rw-r--r--epan/dissectors/packet-acn.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/epan/dissectors/packet-acn.c b/epan/dissectors/packet-acn.c
index 35671f9dea..e71a648b02 100644
--- a/epan/dissectors/packet-acn.c
+++ b/epan/dissectors/packet-acn.c
@@ -1687,21 +1687,6 @@ dissect_acn_sdt_client_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/******************************************************************************/
-/* reverses the characters in a string */
-static void
-reverse(char *s)
-{
- char c;
- long i,j;
- for (i=0, j=strlen(s)-1; i < j; i++, j--) {
- c = s[i];
- s[i] = s[j];
- s[j] = c;
- }
-}
-
-
-/******************************************************************************/
/* level to string (ascii) */
/* level : 8 bit value */
/* string : pointer to buffer to fill */
@@ -1745,7 +1730,7 @@ ltos(guint8 level, gchar *string, guint8 base, gchar leading_char, guint8 min_ch
string[i] = '\0';
/* now reverse (and correct) the order */
- reverse(string);
+ g_strreverse(string);
/* add a space at the end (ok its at the start but it will be at the end)*/
string[i++] = ' ';