提交 5ffa3126 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

return -1 if error happens

上级 54a50d66
......@@ -57,7 +57,7 @@ int64_t tfclose(int64_t tfd) {
ssize_t tfwrite(int64_t tfd, const void *buf, size_t count) {
void *p = taosAcquireRef(tsFileRsetId, tfd);
if (p == NULL) return terrno;
if (p == NULL) return -1;
int fd = (int)(uintptr_t)p;
......@@ -71,7 +71,7 @@ ssize_t tfwrite(int64_t tfd, const void *buf, size_t count) {
ssize_t tfread(int64_t tfd, void *buf, size_t count) {
void *p = taosAcquireRef(tsFileRsetId, tfd);
if (p == NULL) return terrno;
if (p == NULL) return -1;
int fd = (int)(uintptr_t)p;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册