Mercurial > audlegacy-plugins
diff src/vtx/vtxfile.c @ 2229:33ffac81f4c7
eliminate warnings.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sat, 15 Dec 2007 00:03:37 +0900 |
parents | 839804c3b3a4 |
children | 3134a0987162 |
line wrap: on
line diff
--- a/src/vtx/vtxfile.c Fri Dec 14 23:36:11 2007 +0900 +++ b/src/vtx/vtxfile.c Sat Dec 15 00:03:37 2007 +0900 @@ -192,11 +192,11 @@ aud_vfs_fclose (vtx->fp); vtx->fp = NULL; if ((vtx->regdata = (char *) malloc (vtx->hdr.regdata_size)) == NULL) { - fprintf (stderr, "ayemu_vtx_load_data: Can allocate %d bytes for unpack register data\n", vtx->hdr.regdata_size); + fprintf (stderr, "ayemu_vtx_load_data: Can allocate %d bytes for unpack register data\n", (int)(vtx->hdr.regdata_size)); free (packed_data); return NULL; } - lh5_decode (packed_data, vtx->regdata, vtx->hdr.regdata_size, packed_size); + lh5_decode ((unsigned char *)packed_data, (unsigned char *)(vtx->regdata), vtx->hdr.regdata_size, packed_size); free (packed_data); vtx->pos = 0; return vtx->regdata;