diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-07 01:05:00 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-07 01:05:00 -0700 |
commit | 223752d78f464f6cabafa76f32089300522d3ff4 (patch) | |
tree | 757d9055bfb2a434d787a6280d8e4d5461302097 /src/alloc.c | |
parent | 3c439e0a8410d713488b16af5842ad8ef0cddb04 (diff) | |
download | emacs-223752d78f464f6cabafa76f32089300522d3ff4.tar.gz |
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) if (emacs_pipe (fd) == 0) { - bool valid = emacs_write (fd[1], (char *) p, 16) == 16; + bool valid = emacs_write (fd[1], p, 16) == 16; emacs_close (fd[1]); emacs_close (fd[0]); return valid; |