aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-01-10 16:26:55 +0100
committerMichael Mann <mmann78@netscape.net>2015-01-10 15:52:40 +0000
commit0f6b09d32ecf43651dc56578097327c01567ffc7 (patch)
tree476bcdb3f329c97f572ff0e7fcf2279fc2b73a46 /epan
parent1a30c9767ad1618b58b378b0779fe6b8e271027c (diff)
to_str (epan): fix parameter 'scope' not found in the function declaration [-Wdocumentation]
Change-Id: Ie414d28415b71a79780d37fae454b90a7a610e1c Reviewed-on: https://code.wireshark.org/review/6475 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r--epan/to_str.c4
-rw-r--r--epan/to_str.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index e3be688c84..9ef29fe01d 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -200,7 +200,7 @@ bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad, const guint32 len,
}
char *
-bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len)
+bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, int bd_len)
{
gchar *cur;
gchar *cur_ptr;
@@ -209,7 +209,7 @@ bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len)
if (!bd)
REPORT_DISSECTOR_BUG("Null pointer passed to bytes_to_str()");
- cur=(gchar *)wmem_alloc(allocator, MAX_BYTE_STR_LEN+3+1);
+ cur=(gchar *)wmem_alloc(scope, MAX_BYTE_STR_LEN+3+1);
if (bd_len <= 0) { cur[0] = '\0'; return cur; }
if (bd_len > MAX_BYTE_STR_LEN/2) { /* bd_len > 24 */
diff --git a/epan/to_str.h b/epan/to_str.h
index a57f15e19a..b7056c5752 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -138,7 +138,7 @@ WS_DLL_PUBLIC gchar* tvb_address_var_to_str(wmem_allocator_t *scope, tvbuff_t *t
* @param bd_len The length of the byte array
* @return A pointer to the formatted string
*/
-WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *allocator, const guint8 *bd, int bd_len);
+WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, int bd_len);
/** Turn an array of bytes into a string showing the bytes in hex,
* separated by a punctuation character.