Skip to content

Commit

Permalink
elf: Address warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Feb 13, 2024
1 parent 822d679 commit 6222cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elf/section_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ if_alloc! {
/// Parse `count` section headers from `bytes` at `offset`, using the given `ctx`
/// Assuming this is read from the whole file, it will check offset.
#[cfg(feature = "endian_fd")]
pub fn parse(bytes: &[u8], mut offset: usize, mut count: usize, ctx: Ctx) -> error::Result<Vec<SectionHeader>> {
pub fn parse(bytes: &[u8], offset: usize, count: usize, ctx: Ctx) -> error::Result<Vec<SectionHeader>> {
// Zero offset means no section headers, not even the null section header.
if offset == 0 {
return Ok(Vec::new());
Expand Down

0 comments on commit 6222cc1

Please sign in to comment.