Skip to content

Commit

Permalink
Merge pull request #379 from dave-tucker/fix-link-segfault
Browse files Browse the repository at this point in the history
aya: Fix segfault in define_link_wrapper
  • Loading branch information
dave-tucker authored Sep 5, 2022
2 parents 6f0637a + 8305ee1 commit 9451699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aya/src/programs/links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ macro_rules! define_link_wrapper {

impl From<$wrapper> for $base {
fn from(w: $wrapper) -> $base {
w.into()
w.0
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion test/integration-test/src/tests/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn multiple_btf_maps() -> anyhow::Result<()> {
}

fn is_loaded() -> bool {
let output = Command::new("bpftool").args(&["prog"]).output().unwrap();
let output = Command::new("bpftool").args(["prog"]).output().unwrap();
let stdout = String::from_utf8(output.stdout).unwrap();
stdout.contains("test_unload")
}
Expand Down

0 comments on commit 9451699

Please sign in to comment.