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:
parent
b2b5404883
commit
0871bca9c7
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ ssize_t net_send_all(socket_t socket, const void *buf, size_t len) {
|
|||
return -1;
|
||||
}
|
||||
len -= w;
|
||||
buf += w;
|
||||
buf = (char *) buf + w;
|
||||
}
|
||||
return w;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue