Blame SOURCES/emacs-0010-src-unexelf.c-NEW_PROGRAM_H-Remove-unused-macro-Bug-.patch

adfca8
From b9df09624d31c34bb214a4df6f24aef3c3c37d1c Mon Sep 17 00:00:00 2001
adfca8
From: Paul Eggert <eggert@cs.ucla.edu>
adfca8
Date: Sun, 8 Nov 2015 09:36:14 -0800
adfca8
Subject: [PATCH 10/11] * src/unexelf.c (NEW_PROGRAM_H): Remove unused macro
adfca8
 (Bug#20614).
adfca8
adfca8
---
adfca8
 src/unexelf.c | 4 +---
adfca8
 1 file changed, 1 insertion(+), 3 deletions(-)
adfca8
adfca8
diff --git a/src/unexelf.c b/src/unexelf.c
adfca8
index 85ed934..c10c7f2 100644
adfca8
--- a/src/unexelf.c
adfca8
+++ b/src/unexelf.c
adfca8
@@ -208,8 +208,6 @@ entry_address (void *section_h, ptrdiff_t idx, ptrdiff_t entsize)
adfca8
   (*(ElfW (Shdr) *) entry_address (new_section_h, n, new_file_h->e_shentsize))
adfca8
 #define OLD_PROGRAM_H(n) \
adfca8
   (*(ElfW (Phdr) *) entry_address (old_program_h, n, old_file_h->e_phentsize))
adfca8
-#define NEW_PROGRAM_H(n) \
adfca8
-  (*(ElfW (Phdr) *) entry_address (new_program_h, n, new_file_h->e_phentsize))
adfca8
 
adfca8
 typedef unsigned char byte;
adfca8
 
adfca8
@@ -250,7 +248,7 @@ unexec (const char *new_name, const char *old_name)
adfca8
   ElfW (Phdr) *old_bss_seg, *new_bss_seg;
adfca8
   ElfW (Addr) old_bss_addr, new_bss_addr;
adfca8
   ElfW (Word) old_bss_size, new_data2_size;
adfca8
-  ElfW (Off)  old_bss_offset, new_data2_offset;
adfca8
+  ElfW (Off) old_bss_offset, new_data2_offset;
adfca8
 
adfca8
   ptrdiff_t n;
adfca8
   ptrdiff_t old_bss_index;
adfca8
-- 
adfca8
2.7.4
adfca8