Skip to content

Commit

Permalink
remove buf parameter (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupeshkoushik07 authored Aug 13, 2024
1 parent b78a51c commit dab8811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/safeposix/syscalls/fs_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,7 @@ impl Cage {
Inode::CharDev(ref char_inode_obj) => {
// The `_write_chr_file` helper function typically does not write
// anything to the device and simply returns the bytes count.
self._write_chr_file(&char_inode_obj, buf, count)
self._write_chr_file(&char_inode_obj, count)
}

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

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

0 comments on commit dab8811

Please sign in to comment.