aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2025-07-14 21:41:18 +0800
committerPo Lu2025-07-14 21:41:18 +0800
commitb2d5e4fe40b56913c9282b3e584336fed47474d2 (patch)
treead56fdd24fa5edbb9e9379f38d66adfc2add9a77 /src
parentd0f96de277ff89adae4bc29ce934b7fca1d9bf00 (diff)
downloademacs-b2d5e4fe40b56913c9282b3e584336fed47474d2.tar.gz
emacs-b2d5e4fe40b56913c9282b3e584336fed47474d2.zip
Fix the Android port
* src/fileio.c (emacs_full_read): Retype FD param to `emacs_fd'. (Fcopy_file): Label newsize MAYBE_UNUSED.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 12f3aede018..9ac6f4b1fa8 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2225,7 +2225,7 @@ barf_or_query_if_file_exists (Lisp_Object absname, bool known_to_exist,
2225 On success, return the read count, which is less than BUFSIZE at EOF. 2225 On success, return the read count, which is less than BUFSIZE at EOF.
2226 Return -1 on failure, setting errno and possibly setting BUF. */ 2226 Return -1 on failure, setting errno and possibly setting BUF. */
2227static ptrdiff_t 2227static ptrdiff_t
2228emacs_full_read (int fd, void *buf, ptrdiff_t bufsize) 2228emacs_full_read (emacs_fd fd, void *buf, ptrdiff_t bufsize)
2229{ 2229{
2230 char *b = buf; 2230 char *b = buf;
2231 ptrdiff_t nread = 0, r; 2231 ptrdiff_t nread = 0, r;
@@ -2406,7 +2406,7 @@ permissions. */)
2406 if (emacs_fd_to_int (ifd) == -1 2406 if (emacs_fd_to_int (ifd) == -1
2407 || !clone_file (ofd, emacs_fd_to_int (ifd))) 2407 || !clone_file (ofd, emacs_fd_to_int (ifd)))
2408 { 2408 {
2409 off_t newsize = 0; 2409 MAYBE_UNUSED off_t newsize = 0;
2410 2410
2411#ifndef MSDOS 2411#ifndef MSDOS
2412 if (emacs_fd_to_int (ifd) != -1) 2412 if (emacs_fd_to_int (ifd) != -1)