From 06254cf423c932e3c52220ba8ab51a62e74f6fbe Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 26 Aug 2019 10:46:49 +0800 Subject: [PATCH] fix compile error --- src/os/linux/src/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/src/os.c b/src/os/linux/src/os.c index 41dee25659..7b6be057c8 100644 --- a/src/os/linux/src/os.c +++ b/src/os/linux/src/os.c @@ -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); -- GitLab