From 34de613deab1c8728118fce389963ecb29ca51e7 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 14 Feb 2021 11:06:50 +0100 Subject: libmm-glib,common-helpers: make hexstr2bin() return a guint8 array It makes much more sense than returning a gchar array, as gchar is signed. --- libmm-glib/mm-common-helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmm-glib/mm-common-helpers.h') diff --git a/libmm-glib/mm-common-helpers.h b/libmm-glib/mm-common-helpers.h index 50d58134..4e6d9784 100644 --- a/libmm-glib/mm-common-helpers.h +++ b/libmm-glib/mm-common-helpers.h @@ -181,7 +181,7 @@ gchar *mm_get_string_unquoted_from_match_info (GMatchInfo *match_info, const gchar *mm_sms_delivery_state_get_string_extended (guint delivery_state); gint mm_utils_hex2byte (const gchar *hex); -gchar *mm_utils_hexstr2bin (const gchar *hex, gssize len, gsize *out_len, GError **error); +guint8 *mm_utils_hexstr2bin (const gchar *hex, gssize len, gsize *out_len, GError **error); gchar *mm_utils_bin2hexstr (const guint8 *bin, gsize len); gboolean mm_utils_ishexstr (const gchar *hex); -- cgit v1.2.3-70-g09d2