From c94c7a5c86de15af61280c86c5d4c67d34a91602 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Sun, 21 Jul 2013 19:31:57 +0000 Subject: [PATCH] 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 --- ipmitool/lib/ipmi_fwum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipmitool/lib/ipmi_fwum.c b/ipmitool/lib/ipmi_fwum.c index 78a18ee..b4c322e 100644 --- a/ipmitool/lib/ipmi_fwum.c +++ b/ipmitool/lib/ipmi_fwum.c @@ -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) {