summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2025-06-12 13:49:37 +0200
committerGravatar Nikias Bassen2025-06-12 13:49:37 +0200
commit483d040ab46a5aa11795453a5c1b69d160b31180 (patch)
treedbca6918cfd48eb783b0be3b03340724bdda202f /src
parent3bf294f149594b61aaa6dace57628c924af2f501 (diff)
downloadlibimobiledevice-483d040ab46a5aa11795453a5c1b69d160b31180.tar.gz
libimobiledevice-483d040ab46a5aa11795453a5c1b69d160b31180.tar.bz2
ostrace: Use void*/const void* and size_t
Diffstat (limited to 'src')
-rw-r--r--src/ostrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostrace.c b/src/ostrace.c
index 0fdd147..9867019 100644
--- a/src/ostrace.c
+++ b/src/ostrace.c
@@ -262,7 +262,7 @@ void *ostrace_worker(void *arg)
debug_info("got length %d", rlen);
- unsigned char* buf = (unsigned char*)malloc(rlen);
+ void* buf = malloc(rlen);
res = ostrace_error(service_receive(oswt->client->parent, (char*)buf, rlen, &received));
if (res != OSTRACE_E_SUCCESS) {
debug_info("Failed to receive %d bytes, error %d", rlen, res);