Skip to content

Commit dab8811

Browse files
remove buf parameter (#321)
1 parent b78a51c commit dab8811

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/safeposix/syscalls/fs_calls.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ impl Cage {
21332133
Inode::CharDev(ref char_inode_obj) => {
21342134
// The `_write_chr_file` helper function typically does not write
21352135
// anything to the device and simply returns the bytes count.
2136-
self._write_chr_file(&char_inode_obj, buf, count)
2136+
self._write_chr_file(&char_inode_obj, count)
21372137
}
21382138

21392139
// A Sanity check is added to make sure that there is no such case when the
@@ -2380,7 +2380,7 @@ impl Cage {
23802380
Inode::CharDev(ref char_inode_obj) => {
23812381
// The `_write_chr_file` helper function typically does not write
23822382
// anything to the device and simply returns the bytes count.
2383-
self._write_chr_file(&char_inode_obj, buf, count)
2383+
self._write_chr_file(&char_inode_obj, count)
23842384
}
23852385

23862386
// A Sanity check is added to make sure that there is no such case when the
@@ -2433,7 +2433,7 @@ impl Cage {
24332433
/// ### Panics
24342434
///
24352435
/// This function does not cause any panics.
2436-
fn _write_chr_file(&self, inodeobj: &DeviceInode, _buf: *const u8, count: usize) -> i32 {
2436+
fn _write_chr_file(&self, inodeobj: &DeviceInode, count: usize) -> i32 {
24372437
// Writes to any of these device files transparently succeed while doing
24382438
// nothing. The data passed to them for writing is simply discarded.
24392439
match inodeobj.dev {

0 commit comments

Comments
 (0)