summaryrefslogtreecommitdiff
path: root/src/unexcw.c
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2016-05-28 13:56:54 -0400
committerKen Brown <kbrown@cornell.edu>2016-05-28 13:56:54 -0400
commitb90e8904092eb7aa5b4cb3ede822d10422b70976 (patch)
tree8006b1e7ef3083d96a9e494ee0fe6d588410172c /src/unexcw.c
parent4ef0fc192b8a10625053dbb9376c814e68612eb6 (diff)
downloademacs-b90e8904092eb7aa5b4cb3ede822d10422b70976.tar.gz
Avoid compiler warnings
* src/cygw32.c (chdir_to_default_directory): Use "void" as argument list. Use SSDATA instead of SDATA. * src/unexcw.c (fixup_executable): Use %td as format specifier for argument of type ptrdiff_t. Use %zu for argument of type size_t.
Diffstat (limited to 'src/unexcw.c')
-rw-r--r--src/unexcw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexcw.c b/src/unexcw.c
index ea678dd4c25..6343b38bcff 100644
--- a/src/unexcw.c
+++ b/src/unexcw.c
@@ -147,7 +147,7 @@ fixup_executable (int fd)
assert (ret == my_edata - (char *) start_address);
++found_data;
if (debug_unexcw)
- printf (" .data, mem start %#lx mem length %d\n",
+ printf (" .data, mem start %#lx mem length %td\n",
start_address, my_edata - (char *) start_address);
if (debug_unexcw)
printf (" .data, file start %d file length %d\n",
@@ -213,7 +213,7 @@ fixup_executable (int fd)
sizeof (exe_header->section_header[i]));
assert (ret == sizeof (exe_header->section_header[i]));
if (debug_unexcw)
- printf (" seek to %ld, write %d\n",
+ printf (" seek to %ld, write %zu\n",
(long) ((char *) &exe_header->section_header[i] -
(char *) exe_header),
sizeof (exe_header->section_header[i]));
@@ -228,7 +228,7 @@ fixup_executable (int fd)
my_endbss - (char *) start_address);
assert (ret == (my_endbss - (char *) start_address));
if (debug_unexcw)
- printf (" .bss, mem start %#lx mem length %d\n",
+ printf (" .bss, mem start %#lx mem length %td\n",
start_address, my_endbss - (char *) start_address);
if (debug_unexcw)
printf (" .bss, file start %d file length %d\n",