X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Funexelfsgi.c;h=ae661ceab8b0356ba7c3f7c7f82bbe3dd692c5ba;hb=d3dd71489ab2730d79536ebdc3c56cca82766e9d;hp=a76a9f68a99fd994b0404b113eaac47e762cbdb8;hpb=c6a795ec5cc5151bdad2935828f12a0970e950d2;p=chise%2Fxemacs-chise.git diff --git a/src/unexelfsgi.c b/src/unexelfsgi.c index a76a9f6..ae661ce 100644 --- a/src/unexelfsgi.c +++ b/src/unexelfsgi.c @@ -541,9 +541,8 @@ typedef unsigned char byte; /* Round X up to a multiple of Y. */ -int -round_up (x, y) - int x, y; +static int +round_up (int x, int y) { int rem = x % y; if (rem == 0) @@ -559,13 +558,12 @@ round_up (x, y) if NOERROR is 0; we return -1 if NOERROR is nonzero. */ static int -find_section (name, section_names, file_name, old_file_h, old_section_h, noerror) - char *name; - char *section_names; - char *file_name; - l_Elf_Ehdr *old_file_h; - l_Elf_Shdr *old_section_h; - int noerror; +find_section (char *name, + char *section_names, + char *file_name, + l_Elf_Ehdr *old_file_h, + l_Elf_Shdr *old_section_h, + int noerror) { int idx; @@ -600,9 +598,11 @@ find_section (name, section_names, file_name, old_file_h, old_section_h, noerror * */ int -unexec (new_name, old_name, data_start, bss_start, entry_address) - char *new_name, *old_name; - uintptr_t data_start, bss_start, entry_address; +unexec (char *new_name, + char *old_name, + uintptr_t data_start, + uintptr_t bss_start, + uintptr_t entry_address) { extern uintptr_t bss_end; int new_file, old_file, new_file_size;