replaces deprecated elf_getshstrndx with elf_getshdrstrndx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux