diff options
| author | Ken Raeburn | 2002-07-19 14:27:20 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-19 14:27:20 +0000 |
| commit | dca0fc1c6ce86193b6973dcd06f6e29893439357 (patch) | |
| tree | 74c2bfd0cc48881f873148f63977b00c492e9c2d /src | |
| parent | 3f7e390a954abf8dee64857a0190f8ca4f277998 (diff) | |
| download | emacs-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.c | 7 |
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 *)); | |||
| 233 | static void vox_close P_ ((struct sound_device *sd)); | 234 | static void vox_close P_ ((struct sound_device *sd)); |
| 234 | static void vox_choose_format P_ ((struct sound_device *, struct sound *)); | 235 | static void vox_choose_format P_ ((struct sound_device *, struct sound *)); |
| 235 | static void vox_init P_ ((struct sound_device *)); | 236 | static void vox_init P_ ((struct sound_device *)); |
| 236 | static void vox_write P_ ((struct sound_device *, char *, int)); | 237 | static void vox_write P_ ((struct sound_device *, const char *, int)); |
| 237 | static void sound_perror P_ ((char *)); | 238 | static void sound_perror P_ ((char *)); |
| 238 | static void sound_warning P_ ((char *)); | 239 | static void sound_warning P_ ((char *)); |
| 239 | static int parse_sound P_ ((Lisp_Object, Lisp_Object *)); | 240 | static int parse_sound P_ ((Lisp_Object, Lisp_Object *)); |
| @@ -914,7 +915,7 @@ vox_init (sd) | |||
| 914 | static void | 915 | static void |
| 915 | vox_write (sd, buffer, nbytes) | 916 | vox_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); |