X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fntplay.c;h=d535fd97da39d7d4f93b1609d21312948b0e02d1;hp=8ff0be7bfcf8bb596e436ece76039ad3e0c4edb4;hb=3890a2e3064a7f562107c58e59d928284ec04741;hpb=a4106e305f464a1d09e395329e2426f7759a4281 diff --git a/src/ntplay.c b/src/ntplay.c index 8ff0be7..d535fd9 100644 --- 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); - data = xmalloc (size); + data = (unsigned char *)xmalloc (size); 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) { - sound_data = xmalloc (length); + sound_data = (unsigned char *)xmalloc (length); memcpy (sound_data, data, length); } else