ID: 65 - Fixes for configure.in for cross compilation

Fixed silly error where the return from fseek was compared to (unsigned
int) NULL, which makes no sense at all.

Commit for Dan Gora
This commit is contained in:
Zdenek Styblik 2013-07-21 19:31:57 +00:00
parent 4fdbe5bbd0
commit c94c7a5c86

View File

@ -479,9 +479,9 @@ static tKFWUM_Status KfwumGetFileSize(unsigned char * pFileName,
if(pFileHandle)
{
if(fseek(pFileHandle, 0L , SEEK_END) == (unsigned int) NULL)
if (fseek(pFileHandle, 0L , SEEK_END) == 0)
{
*pFileSize = ftell(pFileHandle);
*pFileSize = ftell(pFileHandle);
if( *pFileSize != 0)
{