From: Ken Raeburn Date: Fri, 19 Jul 2002 14:27:20 +0000 (+0000) Subject: (struct sound_device): Function pointer field "write" X-Git-Tag: ttn-vms-21-2-B4~13972 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dca0fc1c6ce86193b6973dcd06f6e29893439357;p=emacs.git (struct sound_device): Function pointer field "write" buffer argument now points to const. (vox_write): Buffer argument points to const. --- 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 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_configure P_ ((struct sound_device *)); 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 @@ vox_init (sd) 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);