ipcd: Fix a couple of warnings

This commit is contained in:
bjorn3
2025-12-03 22:45:09 +01:00
parent 3abe41d258
commit 4a182077c9
2 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -737,9 +737,9 @@ impl<'sock> SchemeSync for UdsDgramScheme<'sock> {
}
}
fn fevent(&mut self, id: usize, flags: EventFlags, ctx: &CallerCtx) -> Result<EventFlags> {
fn fevent(&mut self, id: usize, flags: EventFlags, _ctx: &CallerCtx) -> Result<EventFlags> {
let socket_rc = self.get_socket(id)?;
let mut socket = socket_rc.borrow_mut();
let socket = socket_rc.borrow_mut();
let mut ready = EventFlags::empty();
if flags.contains(EVENT_READ) && !socket.messages.is_empty() {
@@ -752,7 +752,7 @@ impl<'sock> SchemeSync for UdsDgramScheme<'sock> {
Ok(ready)
}
fn fstat(&mut self, id: usize, stat: &mut Stat, ctx: &CallerCtx) -> Result<()> {
fn fstat(&mut self, id: usize, stat: &mut Stat, _ctx: &CallerCtx) -> Result<()> {
self.get_socket(id)?;
*stat = Stat {
+4 -4
View File
@@ -16,7 +16,7 @@ use std::{
cell::RefCell,
cmp,
collections::{HashMap, HashSet, VecDeque},
mem, ptr,
mem,
rc::Rc,
slice,
};
@@ -383,7 +383,7 @@ impl<'sock> UdsStreamScheme<'sock> {
})
}
fn post_fevent(&self, id: usize, mut flags: EventFlags) -> Result<()> {
fn post_fevent(&self, id: usize, flags: EventFlags) -> Result<()> {
/*TODO: filter out unnecessary flags?
if let Ok(socket_rc) = self.get_socket(id) {
let socket = socket_rc.borrow();
@@ -1324,13 +1324,13 @@ impl<'sock> SchemeSync for UdsStreamScheme<'sock> {
}
}
fn fevent(&mut self, id: usize, flags: EventFlags, ctx: &CallerCtx) -> Result<EventFlags> {
fn fevent(&mut self, id: usize, flags: EventFlags, _ctx: &CallerCtx) -> Result<EventFlags> {
let socket_rc = self.get_socket(id)?;
let socket = socket_rc.borrow();
Ok(socket.events() & flags)
}
fn fstat(&mut self, id: usize, stat: &mut Stat, ctx: &CallerCtx) -> Result<()> {
fn fstat(&mut self, id: usize, stat: &mut Stat, _ctx: &CallerCtx) -> Result<()> {
self.get_socket(id)?;
*stat = Stat {