Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(787)

Unified Diff: base/files/dir_reader_linux.h

Issue 1526253003: Linux: Correctly count the number of open file descriptors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/files/dir_reader_fallback.h ('k') | base/process/process_metrics_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/dir_reader_linux.h
diff --git a/base/files/dir_reader_linux.h b/base/files/dir_reader_linux.h
index abf259530b356175eb9a85bf24e8bf65593024ed..83918e8774a4acc9b74adfdc38b968ced632d6b0 100644
--- a/base/files/dir_reader_linux.h
+++ b/base/files/dir_reader_linux.h
@@ -70,7 +70,7 @@ class DirReaderLinux {
const char* name() const {
if (!size_)
- return NULL;
+ return nullptr;
const linux_dirent* dirent =
reinterpret_cast<const linux_dirent*>(&buf_[offset_]);
@@ -88,7 +88,8 @@ class DirReaderLinux {
private:
const int fd_;
unsigned char buf_[512];
- size_t offset_, size_;
+ size_t offset_;
+ size_t size_;
DISALLOW_COPY_AND_ASSIGN(DirReaderLinux);
};
« no previous file with comments | « base/files/dir_reader_fallback.h ('k') | base/process/process_metrics_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698