summaryrefslogtreecommitdiff
path: root/src/unexmacosx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r--src/unexmacosx.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 1acc009ba90..ef43e9bef12 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -305,7 +305,7 @@ print_region (vm_address_t address, vm_size_t size, vm_prot_t prot,
}
static void
-print_region_list ()
+print_region_list (void)
{
struct region_t *r;
@@ -316,7 +316,7 @@ print_region_list ()
}
static void
-print_regions ()
+print_regions (void)
{
task_t target_task = mach_task_self ();
vm_address_t address = (vm_address_t) 0;
@@ -346,7 +346,7 @@ print_regions ()
cannot be omitted because they some regions created at run time are
read-only. */
static void
-build_region_list ()
+build_region_list (void)
{
task_t target_task = mach_task_self ();
vm_address_t address = (vm_address_t) 0;
@@ -465,7 +465,7 @@ unexec_reader (task_t task, vm_address_t address, vm_size_t size, void **ptr)
}
static void
-find_emacs_zone_regions ()
+find_emacs_zone_regions (void)
{
num_unexec_regions = 0;
@@ -495,7 +495,7 @@ unexec_regions_sort_compare (const void *a, const void *b)
}
static void
-unexec_regions_merge ()
+unexec_regions_merge (void)
{
int i, n;
unexec_region_info r;
@@ -627,7 +627,7 @@ print_load_command (struct load_command *lc)
the global array lca. Store the total number of load commands in
global variable nlc. */
static void
-read_load_commands ()
+read_load_commands (void)
{
int i;
@@ -684,8 +684,8 @@ read_load_commands ()
}
}
- printf ("Highest address of load commands in input file: %#8x\n",
- infile_lc_highest_addr);
+ printf ("Highest address of load commands in input file: %#8lx\n",
+ (unsigned long)infile_lc_highest_addr);
printf ("Lowest offset of all sections in __TEXT segment: %#8lx\n",
text_seg_lowest_offset);
@@ -1143,7 +1143,7 @@ copy_other (struct load_command *lc)
/* Loop through all load commands and dump them. Then write the Mach
header. */
static void
-dump_it ()
+dump_it (void)
{
int i;
long linkedit_delta = 0;
@@ -1253,7 +1253,7 @@ unexec (char *outfile, char *infile, void *start_data, void *start_bss,
void
-unexec_init_emacs_zone ()
+unexec_init_emacs_zone (void)
{
emacs_zone = malloc_create_zone (0, 0);
malloc_set_zone_name (emacs_zone, "EmacsZone");