aboutsummaryrefslogtreecommitdiffstats
path: root/src/cygw32.c
diff options
context:
space:
mode:
authorKen Brown2016-05-28 13:56:54 -0400
committerKen Brown2016-05-28 13:56:54 -0400
commitb90e8904092eb7aa5b4cb3ede822d10422b70976 (patch)
tree8006b1e7ef3083d96a9e494ee0fe6d588410172c /src/cygw32.c
parent4ef0fc192b8a10625053dbb9376c814e68612eb6 (diff)
downloademacs-b90e8904092eb7aa5b4cb3ede822d10422b70976.tar.gz
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)
31} 31}
32 32
33static void 33static void
34chdir_to_default_directory () 34chdir_to_default_directory (void)
35{ 35{
36 Lisp_Object new_cwd; 36 Lisp_Object new_cwd;
37 int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0); 37 int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0);
@@ -46,7 +46,7 @@ chdir_to_default_directory ()
46 if (!STRINGP (new_cwd)) 46 if (!STRINGP (new_cwd))
47 new_cwd = build_string ("/"); 47 new_cwd = build_string ("/");
48 48
49 if (chdir (SDATA (ENCODE_FILE (new_cwd)))) 49 if (chdir (SSDATA (ENCODE_FILE (new_cwd))))
50 error ("could not chdir: %s", strerror (errno)); 50 error ("could not chdir: %s", strerror (errno));
51} 51}
52 52