Commit 50060332 authored by Paul Eggert's avatar Paul Eggert
Browse files

* sound.c (wav_play, au_play, Fplay_sound_internal):

Fix pointer signedness.
parent c4fc4e30
2011-03-18 Paul Eggert <eggert@cs.ucla.edu>
 
* sound.c (wav_play, au_play, Fplay_sound_internal):
Fix pointer signedness.
* region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
 
* region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
......@@ -595,7 +595,7 @@ wav_play (struct sound *s, struct sound_device *sd)
files I found so far. If someone feels inclined to implement the
whole RIFF-WAVE spec, please do. */
if (STRINGP (s->data))
sd->write (sd, SDATA (s->data) + sizeof *header,
sd->write (sd, SSDATA (s->data) + sizeof *header,
SBYTES (s->data) - sizeof *header);
else
{
......@@ -686,7 +686,7 @@ au_play (struct sound *s, struct sound_device *sd)
sd->configure (sd);
if (STRINGP (s->data))
sd->write (sd, SDATA (s->data) + header->data_offset,
sd->write (sd, SSDATA (s->data) + header->data_offset,
SBYTES (s->data) - header->data_offset);
else
{
......@@ -1410,7 +1410,7 @@ Internal use only, use `play-sound' instead. */)
{
int len = SCHARS (attrs[SOUND_DEVICE]);
current_sound_device->file = (char *) alloca (len + 1);
strcpy (current_sound_device->file, SDATA (attrs[SOUND_DEVICE]));
strcpy (current_sound_device->file, SSDATA (attrs[SOUND_DEVICE]));
}
if (INTEGERP (attrs[SOUND_VOLUME]))
......@@ -1498,4 +1498,3 @@ init_sound (void)
}
#endif /* HAVE_SOUND */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment