mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-30 22:05:12 +00:00
Avoid pointer arithmetic on "void *"
Fix the following warning (with -Wpedantic enabled): pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
This commit is contained in:
@@ -94,7 +94,7 @@ ssize_t net_send_all(socket_t socket, const void *buf, size_t len) {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
len -= w;
|
len -= w;
|
||||||
buf += w;
|
buf = (char *) buf + w;
|
||||||
}
|
}
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user