Fix clang build

Summary: as title

Test Plan: clang builds

Reviewers: leveldb

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D36183
main
Igor Canadi 10 years ago
parent d61cb0b9de
commit 2158e0f831
  1. 4
      utilities/flashcache/flashcache.cc

@ -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…
Cancel
Save