diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-04-10 23:43:08 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-04-10 23:43:08 +0300 |
commit | 8a2cbd723c0b453b70dc1fcefe5b489f58605258 (patch) | |
tree | a1268c68ffe5a72329d60fcf6280485f8ba2327e /src/sound.c | |
parent | 1ebfdcb6eff7ebe4cf5ef3426944513a2ecdfacf (diff) | |
download | emacs-8a2cbd723c0b453b70dc1fcefe5b489f58605258.tar.gz |
Fix write-region and its subroutines for buffers > 2GB.
src/fileio.c (a_write, e_write): Modify declaration of arguments and
local variables to support buffers larger than 2GB.
(Fcopy_file): Use EMACS_INT for return value of emacs_read.
src/sysdep.c (emacs_write, emacs_read): Use ssize_t for last
argument, local variables, and return value.
src/lisp.h: Update prototypes of emacs_write and emacs_read.
src/sound.c (vox_write): Use ssize_t for return value of emacs_write.
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.c b/src/sound.c index a972809e2c7..a9bd540aaa9 100644 --- a/src/sound.c +++ b/src/sound.c @@ -897,7 +897,7 @@ vox_init (struct sound_device *sd) static void vox_write (struct sound_device *sd, const char *buffer, int nbytes) { - int nwritten = emacs_write (sd->fd, buffer, nbytes); + ssize_t nwritten = emacs_write (sd->fd, buffer, nbytes); if (nwritten < 0) sound_perror ("Error writing to sound device"); } |