Dwarves Archive on lore.kernel.org
 help / color / Atom feed
From: Rakesh Pandit <rakesh.pandit-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: replaces deprecated elf_getshstrndx with elf_getshdrstrndx
Date: Tue, 29 Dec 2009 10:10:38 +0530
Message-ID: <b401d2530912282040y1e967a4egd827cc9626da3f7c@mail.gmail.com> (raw)

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

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-29  4:40 Rakesh Pandit [this message]
     [not found] ` <b401d2530912282040y1e967a4egd827cc9626da3f7c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-29 13:38   ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b401d2530912282040y1e967a4egd827cc9626da3f7c@mail.gmail.com \
    --to=rakesh.pandit-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=dwarves-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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