Fix clang build
Summary: as title Test Plan: clang builds Reviewers: leveldb Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D36183
This commit is contained in:
parent
d61cb0b9de
commit
2158e0f831
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user