mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-27 19:56:23 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user