Skip to content
Snippets Groups Projects
Commit 32c61e93 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

C stat support

parent d17b5508
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ impl Resource for DirResource { ...@@ -74,7 +74,7 @@ impl Resource for DirResource {
fn stat(&self, stat: &mut Stat) -> Result<usize> { fn stat(&self, stat: &mut Stat) -> Result<usize> {
stat.st_mode = MODE_DIR; stat.st_mode = MODE_DIR;
stat.st_size = self.data.len() as u64; stat.st_size = self.data.len() as u32;
Ok(0) Ok(0)
} }
...@@ -144,7 +144,7 @@ impl Resource for FileResource { ...@@ -144,7 +144,7 @@ impl Resource for FileResource {
fn stat(&self, stat: &mut Stat) -> Result<usize> { fn stat(&self, stat: &mut Stat) -> Result<usize> {
stat.st_mode = MODE_FILE; stat.st_mode = MODE_FILE;
stat.st_size = self.size; stat.st_size = self.size as u32;
Ok(0) Ok(0)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment