diff options
| author | Paul Eggert | 2013-10-07 01:05:00 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-10-07 01:05:00 -0700 |
| commit | 223752d78f464f6cabafa76f32089300522d3ff4 (patch) | |
| tree | 757d9055bfb2a434d787a6280d8e4d5461302097 /src/alloc.c | |
| parent | 3c439e0a8410d713488b16af5842ad8ef0cddb04 (diff) | |
| download | emacs-223752d78f464f6cabafa76f32089300522d3ff4.tar.gz emacs-223752d78f464f6cabafa76f32089300522d3ff4.zip | |
emacs_read and emacs_write now use void *, not char *.
* alloc.c (valid_pointer_p) [!WINDOWSNT]: Remove now-unnecessary cast.
* sysdep.c (emacs_read, emacs_write, emacs_write_sig):
Buffer arg is now void *, not char *. This matches plain
'read' and 'write' better, and avoids a constraint violation
on Solaris 9 with Oracle Studio.
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 56a9763db15..0e6a01944ab 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -4824,7 +4824,7 @@ valid_pointer_p (void *p) | |||
| 4824 | 4824 | ||
| 4825 | if (emacs_pipe (fd) == 0) | 4825 | if (emacs_pipe (fd) == 0) |
| 4826 | { | 4826 | { |
| 4827 | bool valid = emacs_write (fd[1], (char *) p, 16) == 16; | 4827 | bool valid = emacs_write (fd[1], p, 16) == 16; |
| 4828 | emacs_close (fd[1]); | 4828 | emacs_close (fd[1]); |
| 4829 | emacs_close (fd[0]); | 4829 | emacs_close (fd[0]); |
| 4830 | return valid; | 4830 | return valid; |