Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/elfix:master commit in: src/
Date: Tue, 27 Sep 2011 18:49:52
Message-Id: 0eec768701b0087fb489a532cb28889280f2509a.blueness@gentoo
1 commit: 0eec768701b0087fb489a532cb28889280f2509a
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 27 18:49:37 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 18:49:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=0eec7687
7
8 src/paxctl-ng.c: removed unused ei_buf[] and pt_buf[]
9
10 ---
11 src/paxctl-ng.c | 7 -------
12 1 files changed, 0 insertions(+), 7 deletions(-)
13
14 diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c
15 index c565ffa..5d92d58 100644
16 --- a/src/paxctl-ng.c
17 +++ b/src/paxctl-ng.c
18 @@ -237,18 +237,11 @@ void
19 set_flags(Elf *elf, int *pax_flags)
20 {
21 GElf_Ehdr ehdr;
22 - char ei_buf[BUF_SIZE];
23 uint16_t ei_flags;
24
25 GElf_Phdr phdr;
26 - char pt_buf[BUF_SIZE];
27 - uint16_t pt_flags;
28 - char found_pt_pax;
29 size_t i, phnum;
30
31 - memset(ei_buf, 0, BUF_SIZE);
32 - memset(pt_buf, 0, BUF_SIZE);
33 -
34 if(gelf_getehdr(elf, &ehdr) != &ehdr)
35 error(EXIT_FAILURE, 0, "gelf_getehdr(): %s", elf_errmsg(elf_errno()));