comparison 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
comparison
equal deleted inserted replaced
2228:0f2ac612f318 2229:33ffac81f4c7
190 packed_data[packed_size++] = c; 190 packed_data[packed_size++] = c;
191 } 191 }
192 aud_vfs_fclose (vtx->fp); 192 aud_vfs_fclose (vtx->fp);
193 vtx->fp = NULL; 193 vtx->fp = NULL;
194 if ((vtx->regdata = (char *) malloc (vtx->hdr.regdata_size)) == NULL) { 194 if ((vtx->regdata = (char *) malloc (vtx->hdr.regdata_size)) == NULL) {
195 fprintf (stderr, "ayemu_vtx_load_data: Can allocate %d bytes for unpack register data\n", vtx->hdr.regdata_size); 195 fprintf (stderr, "ayemu_vtx_load_data: Can allocate %d bytes for unpack register data\n", (int)(vtx->hdr.regdata_size));
196 free (packed_data); 196 free (packed_data);
197 return NULL; 197 return NULL;
198 } 198 }
199 lh5_decode (packed_data, vtx->regdata, vtx->hdr.regdata_size, packed_size); 199 lh5_decode ((unsigned char *)packed_data, (unsigned char *)(vtx->regdata), vtx->hdr.regdata_size, packed_size);
200 free (packed_data); 200 free (packed_data);
201 vtx->pos = 0; 201 vtx->pos = 0;
202 return vtx->regdata; 202 return vtx->regdata;
203 } 203 }
204 204