diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-06 12:50:33 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-01-06 12:58:39 -0800 |
commit | cfab569484b18407fc117bb96634525cc76ea1f5 (patch) | |
tree | 754ec37148cc95958f1657e25768ad69565ebf23 /android/hidhost.c | |
parent | 9f09e69ecb077082301dafb745856e1f3731aaa7 (diff) | |
download | bluez-cfab569484b18407fc117bb96634525cc76ea1f5.tar.gz |
build: Replace use of g_memdup with util_memdup
This replaces the uses of g_memdup with util_memdup since the former has
been deprecated:
warning: ‘g_memdup’ is deprecated: Use 'g_memdup2' instead
[-Wdeprecated-declarations]
g_memdup2 requires bumping glib version which would likely have its
own problems thus why util_memdup was introduced.
Diffstat (limited to 'android/hidhost.c')
-rw-r--r-- | android/hidhost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/hidhost.c b/android/hidhost.c index 016382e17..b4e5c527f 100644 --- a/android/hidhost.c +++ b/android/hidhost.c @@ -689,7 +689,8 @@ static void hid_sdp_search_cb(sdp_list_t *recs, int err, gpointer data) goto fail; dev->rd_size = data->unitSize; - dev->rd_data = g_memdup(data->val.str, data->unitSize); + dev->rd_data = util_memdup(data->val.str, + data->unitSize); } } |