aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-09-15 16:16:32 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-09-16 15:53:14 +0000
commit8b70e24889e8d64c8007d72668978308ad12c5e8 (patch)
tree66999e03719d01006da1f65281298c38524ffabc /wsutil
parent8a584222f1f818793da41468b66bf6a0be6451ac (diff)
wsutil/to_str: Rename some functions for consistency
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/to_str.c4
-rw-r--r--wsutil/to_str.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/wsutil/to_str.c b/wsutil/to_str.c
index 9fcbbf81e0..29592575b3 100644
--- a/wsutil/to_str.c
+++ b/wsutil/to_str.c
@@ -222,7 +222,7 @@ oct64_to_str_back(char *ptr, guint64 value)
}
char *
-hex_to_str_back(char *ptr, int len, guint32 value)
+hex_to_str_back_len(char *ptr, guint32 value, int len)
{
do {
*(--ptr) = low_nibble_of_octet_to_hex(value);
@@ -243,7 +243,7 @@ hex_to_str_back(char *ptr, int len, guint32 value)
}
char *
-hex64_to_str_back(char *ptr, int len, guint64 value)
+hex64_to_str_back_len(char *ptr, guint64 value, int len)
{
do {
*(--ptr) = low_nibble_of_octet_to_hex(value & 0xF);
diff --git a/wsutil/to_str.h b/wsutil/to_str.h
index 5a174ed783..61a321fc77 100644
--- a/wsutil/to_str.h
+++ b/wsutil/to_str.h
@@ -106,7 +106,7 @@ WS_DLL_PUBLIC char *oct64_to_str_back(char *ptr, guint64 value);
* String is not NUL terminated by this routine.
* There needs to be at least 2 + MAX(8, len) bytes in the buffer.
*/
-WS_DLL_PUBLIC char *hex_to_str_back(char *ptr, int len, guint32 value);
+WS_DLL_PUBLIC char *hex_to_str_back_len(char *ptr, guint32 value, int len);
/**
* hex64_to_str_back()
@@ -118,7 +118,7 @@ WS_DLL_PUBLIC char *hex_to_str_back(char *ptr, int len, guint32 value);
* String is not NUL terminated by this routine.
* There needs to be at least 2 + MAX(16, len) bytes in the buffer.
*/
-WS_DLL_PUBLIC char *hex64_to_str_back(char *ptr, int len, guint64 value);
+WS_DLL_PUBLIC char *hex64_to_str_back_len(char *ptr, guint64 value, int len);
/**
* uint_to_str_back()