diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-20 18:34:38 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-20 18:58:10 +0000 |
commit | 72ea33ae208e8c0f8b7f618d4ddf0ffc089c846c (patch) | |
tree | 591718c7a2d7bc096cba0672e6cac55145b3e6e8 /epan/to_str.h | |
parent | ab37610f0859a1136c89a43c991e48b320bb2bc6 (diff) |
epan: Change bytes_to_str() length argument to a size_t
Diffstat (limited to 'epan/to_str.h')
-rw-r--r-- | epan/to_str.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/to_str.h b/epan/to_str.h index 08e0203661..4798bcc8cf 100644 --- a/epan/to_str.h +++ b/epan/to_str.h @@ -175,7 +175,7 @@ WS_DLL_PUBLIC char *dword_to_hex(char *out, guint32 dword); * @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 *scope, const guint8 *bd, int bd_len); +WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, size_t bd_len); /** Turn an array of bytes into a string showing the bytes in hex, * separated by a punctuation character. @@ -188,7 +188,7 @@ WS_DLL_PUBLIC char *bytes_to_str(wmem_allocator_t *scope, const guint8 *bd, int * * @see bytes_to_str() */ -WS_DLL_PUBLIC gchar *bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad, const guint32 len, const char punct); +WS_DLL_PUBLIC gchar *bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad, size_t len, const char punct); /** * bytes_to_hexstr() @@ -199,7 +199,7 @@ WS_DLL_PUBLIC gchar *bytestring_to_str(wmem_allocator_t *scope, const guint8 *ad * String is not NUL terminated by this routine. * There needs to be at least len * 2 bytes in the buffer. */ -WS_DLL_PUBLIC char *bytes_to_hexstr(char *out, const guint8 *ad, guint32 len); +WS_DLL_PUBLIC char *bytes_to_hexstr(char *out, const guint8 *ad, size_t len); /** * uint_to_str_back() |