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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 8 years, 5 months 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
Index: native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc b/native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc
index 7c048d9df994d6e8e795def6f026149b70d6e89a..b35cc5b25bb468edae21547248605992d60068e3 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/kernel_object.cc
@@ -2,12 +2,11 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include <dirent.h>
+#include "nacl_mounts/kernel_object.h"
+
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
-#include <stdint.h>
-#include <sys/stat.h>
#include <algorithm>
#include <map>
@@ -15,7 +14,6 @@
#include <vector>
#include "nacl_mounts/kernel_handle.h"
-#include "nacl_mounts/kernel_object.h"
#include "nacl_mounts/mount.h"
#include "nacl_mounts/mount_node.h"
#include "utils/auto_lock.h"
@@ -34,7 +32,6 @@ Mount* KernelObject::AcquireMountAndPath(const std::string& relpath,
Path* out_path) {
AutoLock lock(&lock_);
Mount* mount = NULL;
- MountNode* node = NULL;
Path abs_path = GetAbsPathLocked(relpath);
@@ -150,4 +147,3 @@ Path KernelObject::GetAbsPathLocked(const std::string& path) {
return abs_path;
}
-

Powered by Google App Engine
This is Rietveld 408576698