mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID: 65 - Fixes for configure.in for cross compilation
NULL should never be cast to an int. Commit for Dan Gora
This commit is contained in:
parent
85ff7dc46a
commit
55524327ce
@ -1,9 +1,9 @@
|
|||||||
/*M*
|
/*M*
|
||||||
// PVCS:
|
// PVCS:
|
||||||
// $Workfile: imbapi.c $
|
// $Workfile: imbapi.c $
|
||||||
// $Revision: 1.3 $
|
// $Revision: 1.4 $
|
||||||
// $Modtime: 06 Aug 2001 13:16:56 $
|
// $Modtime: 06 Aug 2001 13:16:56 $
|
||||||
// $Author: ledva $
|
// $Author: stybla $
|
||||||
//
|
//
|
||||||
// Purpose: This file contains the entry point that opens the IMB device in
|
// Purpose: This file contains the entry point that opens the IMB device in
|
||||||
// order to issue the IMB driver API related IOCTLs.
|
// 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 $
|
* $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
|
* Revision 1.3 2013/01/18 12:46:52 ledva
|
||||||
* 3600962 descriptor leaks
|
* 3600962 descriptor leaks
|
||||||
*
|
*
|
||||||
@ -1909,7 +1916,7 @@ MapPhysicalMemory (
|
|||||||
BOOL status;
|
BOOL status;
|
||||||
PHYSICAL_MEMORY_INFO pmi;
|
PHYSICAL_MEMORY_INFO pmi;
|
||||||
|
|
||||||
if ( startAddress == (int) NULL || addressLength <= 0 )
|
if (startAddress == 0 || addressLength <= 0)
|
||||||
return ACCESN_OUT_OF_RANGE;
|
return ACCESN_OUT_OF_RANGE;
|
||||||
|
|
||||||
pmi.InterfaceType = Internal;
|
pmi.InterfaceType = Internal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user