提交 2158e0f8 编写于 作者: I Igor Canadi

Fix clang build

Summary: as title

Test Plan: clang builds

Reviewers: leveldb

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D36183
上级 d61cb0b9
......@@ -51,12 +51,12 @@ class FlashcacheAwareEnv : public EnvWrapper {
}
static int BlacklistCurrentThread(int cachedev_fd) {
pid_t pid = syscall(SYS_gettid);
pid_t pid = static_cast<pid_t>(syscall(SYS_gettid));
return ioctl(cachedev_fd, FLASHCACHEADDNCPID, &pid);
}
static int WhitelistCurrentThread(int cachedev_fd) {
pid_t pid = syscall(SYS_gettid);
pid_t pid = static_cast<pid_t>(syscall(SYS_gettid));
return ioctl(cachedev_fd, FLASHCACHEDELNCPID, &pid);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册