emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r100716: * unexelf.c (round_up, find


From: Juanma Barranquero
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r100716: * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
Date: Sun, 04 Jul 2010 18:07:11 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 100716
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Sun 2010-07-04 18:07:11 +0200
message:
  * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
modified:
  src/ChangeLog
  src/unexelf.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-07-04 14:40:41 +0000
+++ b/src/ChangeLog     2010-07-04 16:07:11 +0000
@@ -10,6 +10,7 @@
        * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
        (analyse_first): Fix "const const".
        * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
+       * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
        * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
 
 2010-07-04  Dan Nicolaescu  <address@hidden>

=== modified file 'src/unexelf.c'
--- a/src/unexelf.c     2010-07-04 07:50:25 +0000
+++ b/src/unexelf.c     2010-07-04 16:07:11 +0000
@@ -594,7 +594,7 @@
 /* Round X up to a multiple of Y.  */
 
 static ElfW(Addr)
-round_up (Elf32_Addr x, Elf32_Addr y)
+round_up (ElfW(Addr) x, ElfW(Addr) y)
 {
   int rem = x % y;
   if (rem == 0)
@@ -610,7 +610,8 @@
    if NOERROR is 0; we return -1 if NOERROR is nonzero.  */
 
 static int
-find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr 
*old_file_h, Elf32_Shdr *old_section_h, int noerror)
+find_section (char *name, char *section_names, char *file_name,
+             ElfW(Ehdr) *old_file_h, ElfW(Shdr) *old_section_h, int noerror)
 {
   int idx;
 
@@ -645,7 +646,8 @@
  *
  */
 void
-unexec (char *new_name, char *old_name, unsigned int data_start, unsigned int 
bss_start, unsigned int entry_address)
+unexec (char *new_name, char *old_name, unsigned int data_start,
+       unsigned int bss_start, unsigned int entry_address)
 {
   int new_file, old_file, new_file_size;
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]