aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-07-19 14:27:20 +0000
committerKen Raeburn2002-07-19 14:27:20 +0000
commitdca0fc1c6ce86193b6973dcd06f6e29893439357 (patch)
tree74c2bfd0cc48881f873148f63977b00c492e9c2d /src
parent3f7e390a954abf8dee64857a0190f8ca4f277998 (diff)
downloademacs-dca0fc1c6ce86193b6973dcd06f6e29893439357.tar.gz
emacs-dca0fc1c6ce86193b6973dcd06f6e29893439357.zip
(struct sound_device): Function pointer field "write"
buffer argument now points to const. (vox_write): Buffer argument points to const.
Diffstat (limited to 'src')
-rw-r--r--src/sound.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sound.c b/src/sound.c
index 18d0403d49e..a9336a04af9 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -163,7 +163,8 @@ struct sound_device
163 struct sound *s)); 163 struct sound *s));
164 164
165 /* Write NYBTES bytes from BUFFER to device SD. */ 165 /* Write NYBTES bytes from BUFFER to device SD. */
166 void (* write) P_ ((struct sound_device *sd, char *buffer, int nbytes)); 166 void (* write) P_ ((struct sound_device *sd, const char *buffer,
167 int nbytes));
167 168
168 /* A place for devices to store additional data. */ 169 /* A place for devices to store additional data. */
169 void *data; 170 void *data;
@@ -233,7 +234,7 @@ static void vox_configure P_ ((struct sound_device *));
233static void vox_close P_ ((struct sound_device *sd)); 234static void vox_close P_ ((struct sound_device *sd));
234static void vox_choose_format P_ ((struct sound_device *, struct sound *)); 235static void vox_choose_format P_ ((struct sound_device *, struct sound *));
235static void vox_init P_ ((struct sound_device *)); 236static void vox_init P_ ((struct sound_device *));
236static void vox_write P_ ((struct sound_device *, char *, int)); 237static void vox_write P_ ((struct sound_device *, const char *, int));
237static void sound_perror P_ ((char *)); 238static void sound_perror P_ ((char *));
238static void sound_warning P_ ((char *)); 239static void sound_warning P_ ((char *));
239static int parse_sound P_ ((Lisp_Object, Lisp_Object *)); 240static int parse_sound P_ ((Lisp_Object, Lisp_Object *));
@@ -914,7 +915,7 @@ vox_init (sd)
914static void 915static void
915vox_write (sd, buffer, nbytes) 916vox_write (sd, buffer, nbytes)
916 struct sound_device *sd; 917 struct sound_device *sd;
917 char *buffer; 918 const char *buffer;
918 int nbytes; 919 int nbytes;
919{ 920{
920 int nwritten = emacs_write (sd->fd, buffer, nbytes); 921 int nwritten = emacs_write (sd->fd, buffer, nbytes);