Clang warning corrected.

git-svn-id: svn://svn.code.sf.net/p/hxcfloppyemu/code/HxCFloppyEmulator/libhxcfe/trunk@1170 63fa2f70-6a9b-4bc4-b855-9c6a949b1d69
This commit is contained in:
Jean-François DEL NERO
2014-10-05 14:44:10 +00:00
parent 54d007e1b7
commit d2d0615e85
@@ -86,7 +86,7 @@ int FLPPCM_libIsValidDiskFile(HXCFLOPPYEMULATOR* floppycontext,char * imgfile)
fread(&flp_header,sizeof(flp_header_t),1,f);
hxc_fclose(f);
if(strncmp(flp_header.hsign,"PCM",sizeof(flp_header.hsign)))
if(strncmp((char*)flp_header.hsign,"PCM",sizeof(flp_header.hsign)))
{
floppycontext->hxc_printf(MSG_DEBUG,"FLPPCM_libIsValidDiskFile : non FLP file - bad header !");
return HXCFE_BADFILE;
@@ -131,7 +131,7 @@ int FLPPCM_libLoad_DiskFile(HXCFLOPPYEMULATOR* floppycontext,FLOPPY * floppydisk
fread(&flp_header,sizeof(flp_header_t),1,f);
if(!strncmp(flp_header.hsign,"PCM",sizeof(flp_header.hsign)))
if(!strncmp((char*)flp_header.hsign,"PCM",sizeof(flp_header.hsign)))
{
sectorsize = flp_header.sectorsize;
floppydisk->floppyNumberOfTrack = flp_header.nbtracks;