summaryrefslogtreecommitdiff
path: root/client/gatt.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-01-06 12:50:33 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-01-06 12:58:39 -0800
commitcfab569484b18407fc117bb96634525cc76ea1f5 (patch)
tree754ec37148cc95958f1657e25768ad69565ebf23 /client/gatt.c
parent9f09e69ecb077082301dafb745856e1f3731aaa7 (diff)
downloadbluez-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 'client/gatt.c')
-rw-r--r--client/gatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/gatt.c b/client/gatt.c
index 11f70dc4f..13872c794 100644
--- a/client/gatt.c
+++ b/client/gatt.c
@@ -811,7 +811,7 @@ static uint8_t *str2bytearray(char *arg, size_t *val_len)
*val_len = i;
- return g_memdup(value, i);
+ return util_memdup(value, i);
}
void gatt_write_attribute(GDBusProxy *proxy, int argc, char *argv[])