Mercurial > emacs
changeset 46554:fb13fafbd279
(struct sound_device): Function pointer field "write"
buffer argument now points to const.
(vox_write): Buffer argument points to const.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Fri, 19 Jul 2002 14:27:20 +0000 |
parents | 61742ffed0bb |
children | 35e66a0949b8 |
files | src/sound.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sound.c Fri Jul 19 14:27:16 2002 +0000 +++ b/src/sound.c Fri Jul 19 14:27:20 2002 +0000 @@ -163,7 +163,8 @@ struct sound *s)); /* Write NYBTES bytes from BUFFER to device SD. */ - void (* write) P_ ((struct sound_device *sd, char *buffer, int nbytes)); + void (* write) P_ ((struct sound_device *sd, const char *buffer, + int nbytes)); /* A place for devices to store additional data. */ void *data; @@ -233,7 +234,7 @@ static void vox_close P_ ((struct sound_device *sd)); static void vox_choose_format P_ ((struct sound_device *, struct sound *)); static void vox_init P_ ((struct sound_device *)); -static void vox_write P_ ((struct sound_device *, char *, int)); +static void vox_write P_ ((struct sound_device *, const char *, int)); static void sound_perror P_ ((char *)); static void sound_warning P_ ((char *)); static int parse_sound P_ ((Lisp_Object, Lisp_Object *)); @@ -914,7 +915,7 @@ static void vox_write (sd, buffer, nbytes) struct sound_device *sd; - char *buffer; + const char *buffer; int nbytes; { int nwritten = emacs_write (sd->fd, buffer, nbytes);