dwarves.vger.kernel.org archive mirror
 help / color / mirror / 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	[thread overview]
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	other threads:[~2009-12-29  4:40 UTC|newest]

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   ` replaces deprecated elf_getshstrndx with elf_getshdrstrndx 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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).