Dwarves Archive on lore.kernel.org
 help / color / Atom feed
* replaces deprecated elf_getshstrndx with elf_getshdrstrndx
@ 2009-12-29  4:40 Rakesh Pandit
       [not found] ` <b401d2530912282040y1e967a4egd827cc9626da3f7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Rakesh Pandit @ 2009-12-29  4:40 UTC (permalink / raw)
  To: dwarves-u79uwXL29TY76Z2rM5mHXA

Removes irritating warning while compilation.
-- 
Rakesh Pandit
https://fedoraproject.org/wiki/User:Rakesh
freedom, friends, features, first

From 704b1b6710e3b9edfaa754ebfab1e5bc68d8781b Mon Sep 17 00:00:00 2001
From: Rakesh Pandit <rakesh-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>
Date: Tue, 29 Dec 2009 09:55:24 +0530
Subject: [PATCH] libctf: Replaces deprecated elf_getshstrndx with
elf_getshdrstrndx

Signed-off-by: Rakesh Pandit <rakesh-rxtnV0ftBwyoClj4AeEUq9i2O/JbrIOy@public.gmane.org>
---
 libctf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libctf.c b/libctf.c
index 09b6fe2..447b7db 100644
--- a/libctf.c
+++ b/libctf.c
@@ -657,7 +657,7 @@ int ctf__encode(struct ctf *self, uint8_t flags)
 	GElf_Shdr *shdr;
 	Elf_Scn *scn = NULL;

-	elf_getshstrndx(elf, &strndx);
+	elf_getshdrstrndx(elf, &strndx);

 	while ((scn = elf_nextscn(elf, scn)) != NULL) {
 		shdr = gelf_getshdr(scn, &shdr_mem);
-- 
1.6.5.2
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: replaces deprecated elf_getshstrndx with elf_getshdrstrndx
       [not found] ` <b401d2530912282040y1e967a4egd827cc9626da3f7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-12-29 13:38   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2009-12-29 13:38 UTC (permalink / raw)
  To: Rakesh Pandit; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA

Em Tue, Dec 29, 2009 at 10:10:38AM +0530, Rakesh Pandit escreveu:
> Removes irritating warning while compilation.

Applied and pushed out!

Thanks,

- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-29  4:40 replaces deprecated elf_getshstrndx with elf_getshdrstrndx Rakesh Pandit
     [not found] ` <b401d2530912282040y1e967a4egd827cc9626da3f7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-29 13:38   ` Arnaldo Carvalho de Melo

Dwarves Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dwarves/0 dwarves/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dwarves dwarves/ https://lore.kernel.org/dwarves \
		dwarves@vger.kernel.org
	public-inbox-index dwarves

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.dwarves


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git