projects
/
chise
/
xemacs-chise.git.1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.2.30 "Hygeia".
[chise/xemacs-chise.git.1]
/
src
/
ntplay.c
diff --git
a/src/ntplay.c
b/src/ntplay.c
index
8ff0be7
..
d535fd9
100644
(file)
--- a/
src/ntplay.c
+++ b/
src/ntplay.c
@@
-51,7
+51,7
@@
void play_sound_file (char *sound_file, int volume)
return;
size = lseek (ofd, 0, SEEK_END);
return;
size = lseek (ofd, 0, SEEK_END);
- data = xmalloc (size);
+ data = (unsigned char *)xmalloc (size);
lseek (ofd, 0, SEEK_SET);
if (!data)
lseek (ofd, 0, SEEK_SET);
if (!data)
@@
-90,7
+90,7
@@
static void play_sound_data_1 (unsigned char *data, int length, int volume,
if (convert_to_malloc)
{
if (convert_to_malloc)
{
- sound_data = xmalloc (length);
+ sound_data = (unsigned char *)xmalloc (length);
memcpy (sound_data, data, length);
}
else
memcpy (sound_data, data, length);
}
else