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:
Igor Canadi 2015-03-30 10:03:23 -07:00
parent d61cb0b9de
commit 2158e0f831

View File

@ -51,12 +51,12 @@ class FlashcacheAwareEnv : public EnvWrapper {
} }
static int BlacklistCurrentThread(int cachedev_fd) { 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); return ioctl(cachedev_fd, FLASHCACHEADDNCPID, &pid);
} }
static int WhitelistCurrentThread(int cachedev_fd) { 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); return ioctl(cachedev_fd, FLASHCACHEDELNCPID, &pid);
} }