summaryrefslogtreecommitdiff
path: root/src/cygw32.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/cygw32.c
parent4ef0fc192b8a10625053dbb9376c814e68612eb6 (diff)
downloademacs-b90e8904092eb7aa5b4cb3ede822d10422b70976.tar.gz
emacs-b90e8904092eb7aa5b4cb3ede822d10422b70976.tar.bz2
emacs-b90e8904092eb7aa5b4cb3ede822d10422b70976.zip
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/cygw32.c')
-rw-r--r--src/cygw32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cygw32.c b/src/cygw32.c
index 682232035f6..ca9069a120b 100644
--- a/src/cygw32.c
+++ b/src/cygw32.c
@@ -31,7 +31,7 @@ fchdir_unwind (int dir_fd)
}
static void
-chdir_to_default_directory ()
+chdir_to_default_directory (void)
{
Lisp_Object new_cwd;
int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0);
@@ -46,7 +46,7 @@ chdir_to_default_directory ()
if (!STRINGP (new_cwd))
new_cwd = build_string ("/");
- if (chdir (SDATA (ENCODE_FILE (new_cwd))))
+ if (chdir (SSDATA (ENCODE_FILE (new_cwd))))
error ("could not chdir: %s", strerror (errno));
}