From 55524327ce85ecec99e084a20ae503b08ec6bb75 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Sun, 21 Jul 2013 11:33:57 +0000 Subject: [PATCH] ID: 65 - Fixes for configure.in for cross compilation NULL should never be cast to an int. Commit for Dan Gora --- ipmitool/src/plugins/imb/imbapi.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ipmitool/src/plugins/imb/imbapi.c b/ipmitool/src/plugins/imb/imbapi.c index 782d5ec..210844d 100644 --- a/ipmitool/src/plugins/imb/imbapi.c +++ b/ipmitool/src/plugins/imb/imbapi.c @@ -1,9 +1,9 @@ /*M* // PVCS: // $Workfile: imbapi.c $ -// $Revision: 1.3 $ +// $Revision: 1.4 $ // $Modtime: 06 Aug 2001 13:16:56 $ -// $Author: ledva $ +// $Author: stybla $ // // Purpose: This file contains the entry point that opens the IMB device in // order to issue the IMB driver API related IOCTLs. @@ -39,6 +39,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *----------------------------------------------------------------------*/ /* * $Log: imbapi.c,v $ + * Revision 1.4 2013/07/21 11:33:57 stybla + * ID: 65 - Fixes for configure.in for cross compilation + * + * NULL should never be cast to an int. + * + * Commit for Dan Gora + * * Revision 1.3 2013/01/18 12:46:52 ledva * 3600962 descriptor leaks * @@ -1909,7 +1916,7 @@ MapPhysicalMemory ( BOOL status; PHYSICAL_MEMORY_INFO pmi; - if ( startAddress == (int) NULL || addressLength <= 0 ) + if (startAddress == 0 || addressLength <= 0) return ACCESN_OUT_OF_RANGE; pmi.InterfaceType = Internal;