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

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

Issue 12166002: Cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 11 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/mount_node_mem.cc
diff --git a/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc b/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
index 07adb9d03c16765796f4b87b8f67b7c647ff9f37..7cb01b53d98f50b2cc6e43de656aed56e8d9fb75 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
+++ b/native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.cc
@@ -13,22 +13,17 @@
#define BLOCK_SIZE (1 << 16)
#define BLOCK_MASK (BLOCK_SIZE - 1)
-MountNodeMem::MountNodeMem(Mount *mount, int ino, int dev)
- : MountNode(mount, ino, dev),
+MountNodeMem::MountNodeMem(Mount *mount)
+ : MountNode(mount),
data_(NULL),
capacity_(0) {
+ stat_.st_mode |= S_IFREG;
}
MountNodeMem::~MountNodeMem() {
free(data_);
}
-bool MountNodeMem::Init(int mode, short uid, short gid) {
- bool ok = MountNode::Init(mode, uid, gid);
- stat_.st_mode |= S_IFREG;
- return ok;
-}
-
int MountNodeMem::Read(size_t offs, void *buf, size_t count) {
AutoLock lock(&lock_);
if (count == 0) return 0;
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/mount_node_mem.h ('k') | native_client_sdk/src/libraries/nacl_mounts/osstat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698