fix compile error

This commit is contained in:
Hongze Cheng 2019-08-26 10:46:49 +08:00
parent b61efa3e2b
commit 06254cf423
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ ssize_t tsendfile(int dfd, int sfd, off_t *offset, size_t size) {
ssize_t twrite(int fd, void *buf, size_t n) {
size_t nleft = n;
ssize_t nwritten = 0;
char *tbuf = (char *)buf
char *tbuf = (char *)buf;
while (nleft > 0) {
nwritten = write(fd, (void *)tbuf, nleft);