X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FFileUtil.h;h=0913b23d2385510a86928ee2e347e0b3d767df0f;hb=b26334e5f85126a4ebe1c514d4790b98f2c2bbe1;hp=c27e249af4e2727d5a1c20b093ed1aee09c8393d;hpb=520e20a8baebc98a5ec84d67865da4cf9819f88a;p=folly.git diff --git a/folly/FileUtil.h b/folly/FileUtil.h index c27e249a..0913b23d 100644 --- a/folly/FileUtil.h +++ b/folly/FileUtil.h @@ -131,7 +131,9 @@ bool readFile( // Obtain file size: struct stat buf; - if (fstat(fd, &buf) == -1) return false; + if (fstat(fd, &buf) == -1) { + return false; + } // Some files (notably under /proc and /sys on Linux) lie about // their size, so treat the size advertised by fstat under advise // but don't rely on it. In particular, if the size is zero, we @@ -252,4 +254,4 @@ int writeFileAtomicNoThrow( int count, mode_t permissions = 0644); -} // namespaces +} // namespace folly